Changeset 1495 for code/branches/network/src/cpptcl
- Timestamp:
- Jun 1, 2008, 1:10:46 AM (17 years ago)
- Location:
- code/branches/network/src/cpptcl
- Files:
-
- 2 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 -
code/branches/network/src/cpptcl/CppTcl.h
r1494 r1495 467 467 { 468 468 public: 469 interpreter(); interpreter(std::string const &libpath); 469 interpreter(); 470 interpreter(std::string const &libpath); 470 471 interpreter(Tcl_Interp *, bool owner = true); 471 472 ~interpreter();
Note: See TracChangeset
for help on using the changeset viewer.