Changeset 7653 in orxonox.OLD for branches/script_engine/src/lib/script_engine/VirtualMachine.h
- Timestamp:
- May 17, 2006, 7:55:59 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/script_engine/src/lib/script_engine/VirtualMachine.h
r7645 r7653 5 5 6 6 #include "luaincl.h" 7 8 class LuaVirtualMachine 7 namespace OrxScript 9 8 { 9 class LuaVirtualMachine 10 { 10 11 public: 11 12 LuaVirtualMachine (void); … … 15 16 bool destroy (void); 16 17 17 // Load and run script elements18 // Load and run script elements 18 19 bool runFile (const std::string& strFilename); 19 20 bool runBuffer (const unsigned char *pbBuffer, size_t szLen, const char *strName = NULL); 20 21 21 // C-Api into script22 // C-Api into script 22 23 bool callFunction (int nArgs, int nReturns = 0); 23 24 24 // Get the state of the lua stack (use the cast operator)25 //lua_State *GetState (void) { return luaState; }25 // Get the state of the lua stack (use the cast operator) 26 //lua_State *GetState (void) { return luaState; } 26 27 operator lua_State *(void) { return luaState; } 27 28 28 29 static void panic (lua_State *lua); 29 30 30 // Check if the VM is OK and can be used still31 // Check if the VM is OK and can be used still 31 32 virtual bool isOk (void) { return machineIsOk; } 32 33 33 // For debugging34 // For debugging 34 35 //void AttachDebugger (CLuaDebugger *dbg) { m_pDbg = dbg; } 35 36 … … 37 38 lua_State* luaState; 38 39 bool machineIsOk; 39 // CLuaDebugger *m_pDbg; 40 }; 40 // CLuaDebugger *m_pDbg; 41 }; 42 } 41 43 #endif
Note: See TracChangeset
for help on using the changeset viewer.