Changeset 3340 for code/branches/resource/src/core/LuaBind.h
- Timestamp:
- Jul 23, 2009, 8:47:55 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/resource/src/core/LuaBind.h
r3196 r3340 58 58 public: 59 59 LuaBind(); 60 inline ~LuaBind() { assert(singletonRef_s); LuaBind::singletonRef_s = NULL; };60 ~LuaBind(); 61 61 62 62 inline static LuaBind& getInstance() { assert(singletonRef_s); return *LuaBind::singletonRef_s; } // tolua_export … … 83 83 { this->includePath_ = includepath; } 84 84 85 void addToluaInterface(int (*function)(lua_State*), const std::string& name); 86 void openToluaInterfaces(lua_State* state); 87 void closeToluaInterfaces(lua_State* state); 88 85 89 private: 86 90 static LuaBind* singletonRef_s; … … 91 95 bool isRunning_; 92 96 std::string includePath_; 97 std::vector<std::pair<std::string, int (*)(lua_State *L)> > toluaInterfaces_; 93 98 94 99 }; // tolua_export
Note: See TracChangeset
for help on using the changeset viewer.