Changeset 1634 for code/branches/gcc43/src/core/Script_clean.h
- Timestamp:
- Jun 29, 2008, 7:36:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gcc43/src/core/Script_clean.h
r1505 r1634 51 51 { // tolua_export 52 52 public: 53 inlinestatic Script* getInstance() { if (!Script::singletonRef) Script::singletonRef = new Script(); return Script::singletonRef; } // tolua_export54 inline~Script() { Script::singletonRef = NULL; };53 static Script* getInstance() { if (!Script::singletonRef) Script::singletonRef = new Script(); return Script::singletonRef; } // tolua_export 54 ~Script() { Script::singletonRef = NULL; }; 55 55 56 56 void loadFile(std::string filename, bool luaTags); … … 61 61 62 62 #if LUA_VERSION_NUM != 501 63 inlinestatic const char * lua_Chunkreader(lua_State *L, void *data, size_t *size) { return NULL;};63 static const char * lua_Chunkreader(lua_State *L, void *data, size_t *size) { return NULL;}; 64 64 #endif 65 65 66 inlinelua_State* getLuaState() { return luaState_; };67 inlinestd::string getLuaOutput() { return output_; };68 // inlinestd::string* getFileString() { return &fileString_; };66 lua_State* getLuaState() { return luaState_; }; 67 std::string getLuaOutput() { return output_; }; 68 //std::string* getFileString() { return &fileString_; }; 69 69 70 70 unsigned int getNextQuote(const std::string& text, unsigned int start);
Note: See TracChangeset
for help on using the changeset viewer.