diff options
author | chai <chaifix@163.com> | 2019-03-19 23:06:27 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-03-19 23:06:27 +0800 |
commit | 1497dccd63a84b7ee2b229b1ad9c5c02718f2a78 (patch) | |
tree | f8d1bff50da13e126d08c7345653e002e293202d /Source/3rdParty/Luax/luax_runtime.h | |
parent | 5e2a973516e0729b225da9de0b03015dc5854ac4 (diff) |
*rename
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 |