diff options
author | chai <chaifix@163.com> | 2018-11-22 12:23:12 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-11-22 12:23:12 +0800 |
commit | 7a20483f06624e82feb129c9e4c8fa13881a6a9f (patch) | |
tree | 82707e7546fe14d1b781a2e15f65f6ef976ac322 /src/lua/common/je_lua.h | |
parent | 7256d216ecf154d6418c1f3b36dd58a2b69b7827 (diff) |
*修改lua bind
Diffstat (limited to 'src/lua/common/je_lua.h')
-rw-r--r-- | src/lua/common/je_lua.h | 54 |
1 files changed, 54 insertions, 0 deletions
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 |