Changeset 3196 for code/trunk/src/core/LuaBind.h
- Timestamp:
- Jun 20, 2009, 9:20:47 AM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/pch (added) merged: 3114-3118,3124-3125,3127-3131,3133,3138-3194
- Property svn:mergeinfo changed
-
code/trunk/src/core/LuaBind.h
r3068 r3196 38 38 #include "CorePrereqs.h" 39 39 40 #include <cassert> 41 #include <string> 40 42 extern "C" { 41 43 #include <lua.h> 42 44 } 43 44 #include <cassert>45 #include <list>46 #include <string>47 45 48 46 // tolua_begin … … 64 62 inline static LuaBind& getInstance() { assert(singletonRef_s); return *LuaBind::singletonRef_s; } // tolua_export 65 63 66 void loadFile( std::stringfilename, bool luaTags);67 void loadString( std::stringcode);64 void loadFile(const std::string& filename, bool luaTags); 65 void loadString(const std::string& code); 68 66 //void init(lua_State *state_); 69 67 //void xmlToLua(); 70 68 void run(); 71 void luaPrint( std::stringstr); // tolua_export69 void luaPrint(const std::string& str); // tolua_export 72 70 73 71 #if LUA_VERSION_NUM != 501 … … 76 74 77 75 inline lua_State* getLuaState() { return luaState_; }; 78 inline std::stringgetLuaOutput() { return output_; };76 inline const std::string& getLuaOutput() { return output_; }; 79 77 //inline std::string* getFileString() { return &fileString_; }; 80 78 inline void clearLuaOutput() { output_ = ""; }
Note: See TracChangeset
for help on using the changeset viewer.