Changeset 1495 for code/branches/network/src/cpptcl/CppTcl.cc
- Timestamp:
- Jun 1, 2008, 1:10:46 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/cpptcl/CppTcl.cc
r1494 r1495 855 855 interpreter::interpreter() 856 856 { 857 interp_ = Tcl_CreateInterp(); owner_ = true; 858 }interpreter::interpreter(string const &libpath){ interp_ = Tcl_CreateInterp(); owner_ = true; try { this->eval("set tcl_library " + libpath); Tcl_Init(this->interp_); } catch (...) {}} 857 interp_ = Tcl_CreateInterp(); 858 owner_ = true; 859 } 860 861 interpreter::interpreter(string const &libpath) 862 { 863 interp_ = Tcl_CreateInterp(); 864 owner_ = true; 865 866 try 867 { 868 this->eval("set tcl_library " + libpath); 869 Tcl_Init(this->interp_); 870 } catch (...) {} 871 } 859 872 860 873 interpreter::interpreter(Tcl_Interp *interp, bool owner) … … 870 883 // clear all callback info belonging to this interpreter 871 884 clear_definitions(interp_); 872 Tcl_DeleteInterp(interp_); } 885 886 Tcl_DeleteInterp(interp_); 887 } 873 888 } 874 889
Note: See TracChangeset
for help on using the changeset viewer.