diff options
Diffstat (limited to 'Source/3rdParty/Luax/luax_runtime.h')
-rw-r--r-- | Source/3rdParty/Luax/luax_runtime.h | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/Source/3rdParty/Luax/luax_runtime.h b/Source/3rdParty/Luax/luax_runtime.h deleted file mode 100644 index 1234627..0000000 --- a/Source/3rdParty/Luax/luax_runtime.h +++ /dev/null @@ -1,59 +0,0 @@ -#ifndef __LUAX_RUNTIME_H__ -#define __LUAX_RUNTIME_H__ - -#include <map> - -#include "luax_ref.h" -#include "luax_config.h" -#include "luax_state.h" -#include "luax_context.h" - -namespace Luax -{ - - /// - /// ͳһеlua states - /// - class LuaxRuntime - { - public: - - static LuaxRuntime& Get(); - - /// - /// һµlua_Stateصlua_State*һ8\4ֽڵkey - /// - lua_State* Open(); - - /// - /// رlua_Stateruntimeɾ - /// - void Close(lua_State* L); - - bool HasLuaxState(lua_State* L); - LuaxState& GetLuaxState(lua_State* L); - LuaxRefTable& GetStrongRefTable(lua_State* L); - LuaxRefTable& GetWeaksRefTable(lua_State* L); - - LuaxContext& operator[](lua_State* L); - - private: - - LuaxRuntime(); - ~LuaxRuntime(); - - static LuaxRuntime* mRuntime; - - /// - /// lua_State handlecontextӳ - /// - std::map<lua_State*, LuaxContext> mContexts; - - }; - -#define LUAX_RUNTIME() \ - LuaxRuntime& runtime = LuaxRuntime::Get() - -} - -#endif
\ No newline at end of file |