Changeset 1792 for code/trunk/src/core/TclBind.cc
- Timestamp:
- Sep 16, 2008, 8:45:13 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/core/TclBind.cc
r1747 r1792 27 27 */ 28 28 29 #include "TclBind.h" 30 29 31 #include <iostream> 30 32 #include <string> 31 32 33 #include "ConsoleCommand.h" 33 34 #include "CommandExecutor.h" 34 35 #include "TclThreadManager.h" 35 #include "TclBind.h"36 36 #include "util/Debug.h" 37 37 #include "util/String.h" … … 42 42 SetConsoleCommandShortcut(TclBind, bgerror); 43 43 44 TclBind::TclBind() 44 TclBind* TclBind::singletonRef_s = 0; 45 46 TclBind::TclBind(const std::string& datapath) 45 47 { 48 assert(singletonRef_s == 0); 49 singletonRef_s = this; 46 50 this->interpreter_ = 0; 47 51 this->bSetTclLibPath_ = false; 52 this->setDataPath(datapath); 48 53 } 49 54 … … 52 57 if (this->interpreter_) 53 58 delete this->interpreter_; 54 } 55 56 TclBind& TclBind::getInstance() 57 { 58 static TclBind instance; 59 return instance; 59 singletonRef_s = 0; 60 60 } 61 61
Note: See TracChangeset
for help on using the changeset viewer.