summaryrefslogtreecommitdiff
path: root/source/3rd-party/Luax/luax_runtime.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/3rd-party/Luax/luax_runtime.h')
-rw-r--r--source/3rd-party/Luax/luax_runtime.h64
1 files changed, 0 insertions, 64 deletions
diff --git a/source/3rd-party/Luax/luax_runtime.h b/source/3rd-party/Luax/luax_runtime.h
deleted file mode 100644
index 27c9af4..0000000
--- a/source/3rd-party/Luax/luax_runtime.h
+++ /dev/null
@@ -1,64 +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_vm.h"
-
-namespace Luax
-{
-
- ///
- /// ͳһеlua states
- ///
- class LuaxRuntime
- {
- public:
-
- static LuaxRuntime& Get();
-
- ///
- /// һµluaʹ̲߳صlua_State*һ8\4ֽڵkey
- ///
- lua_State* Open();
-/*
- ///
- /// ̴߳һ̡߳ӵcontextӳ䡣ҪΪ˷context߳ʡ
- ///
- lua_State* CreateThread(lua_State* mainThread);
-*/
- ///
- /// ر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);
-
- LuaxVM& operator[](lua_State* L);
-
- private:
-
- LuaxRuntime();
- ~LuaxRuntime();
-
- static LuaxRuntime* mRuntime;
-
- ///
- /// lua_State handlecontextӳ
- ///
- std::map<lua_State*, LuaxVM*> mContexts;
-
- };
-
-#define LUAX_RUNTIME() \
- LuaxRuntime& runtime = LuaxRuntime::Get()
-
-}
-
-#endif \ No newline at end of file