Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 28, 2009, 5:04:38 PM (15 years ago)
Author:
landauf
Message:
  • bugfix in TclBind: Tcl_Init was only called if the constructor of Tcl::interpreter was called with a library path. The initialization is now moved from cpptcl to TclBind.
  • added a new command: TclThreadManager source <file>. This creates a non-interactive tcl-interpreter which executes a file. This allows for example to run the telnet_server.tcl script without a thread compatible tcl library. Warning: experimental state. A script-exit terminates Orxonox.
  • Several small changes in TclThreadManager
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/resource/src/cpptcl/cpptcl.cc

    r3068 r3360  
    859859}
    860860
    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 
    873861interpreter::interpreter(Tcl_Interp *interp, bool owner)
    874862{
Note: See TracChangeset for help on using the changeset viewer.