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_State²¢½«Æä´ÓruntimeÖÐɾ³ý¡£ - /// - 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 handleµ½contextµÄÓ³Éä - /// - std::map<lua_State*, LuaxContext> mContexts; - - }; - -#define LUAX_RUNTIME() \ - LuaxRuntime& runtime = LuaxRuntime::Get() - -} - -#endif
\ No newline at end of file |
