source:
code/branches/buildsystem2/src/cpptcl/changes_orxonox.diff
@
2634
Last change on this file since 2634 was 2600, checked in by rgrieder, 16 years ago | |
---|---|
File size: 1.1 KB |
-
cpptcl.cc
858 858 owner_ = true; 859 859 } 860 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 } 872 861 873 interpreter::interpreter(Tcl_Interp *interp, bool owner) 862 874 { 863 875 interp_ = interp; … … 940 952 // delete all callbacks that were registered for given interpreter 941 953 942 954 { 955 // TODO: why could this probably be necessary? map::find of empty map 956 // shouldn't be a problem. 957 if (callbacks.size() == 0) 958 return; 943 959 callback_map::iterator it = callbacks.find(interp); 944 960 if (it == callbacks.end()) 945 961 { -
cpptcl.h
467 467 { 468 468 public: 469 469 interpreter(); 470 interpreter(std::string const &libpath); 470 471 interpreter(Tcl_Interp *, bool owner = true); 471 472 ~interpreter(); 472 473
Note: See TracBrowser
for help on using the repository browser.