From 7a20483f06624e82feb129c9e4c8fa13881a6a9f Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 22 Nov 2018 12:23:12 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9lua=20bind?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lua/common/je_lua.h | 54 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 src/lua/common/je_lua.h (limited to 'src/lua/common/je_lua.h') diff --git a/src/lua/common/je_lua.h b/src/lua/common/je_lua.h new file mode 100644 index 0000000..c345b2a --- /dev/null +++ b/src/lua/common/je_lua.h @@ -0,0 +1,54 @@ +#ifndef __JE_LUA_H__ +#define __JE_LUA_H__ +#include "LuaJIT/lua.hpp" +#include "libraries/luax/luax.h" + +#include "je_lua_proxy.h" +#include "je_lua_reference.h" +#include "je_lua_shared.hpp" + +namespace JinEngine +{ + namespace Lua + { + + extern const char* Jin_Lua_Objects_Table; + + extern const char* Jin_Lua_Modules_Table; + + extern const char* Jin_Lua_Reference_Table; + + /// + /// + /// + Proxy* luax_newinstance(lua_State* L, const char* type, SharedBase* shared); + + /// + /// + /// + int luax_getobject(lua_State* L, SharedBase* shared); + + /// + /// + /// + int luax_getobjectstable(lua_State* L); + + /// + /// + /// + int luax_getmodulestable(lua_State* L); + + /// + /// + /// + int luax_getreferencestable(lua_State* L); + + /// + /// + /// + int luax_getregistrytable(lua_State* L, const char* tbl); + + } +} + +#endif \ No newline at end of file -- cgit v1.1-26-g67d0