aboutsummaryrefslogtreecommitdiff
path: root/src/lua/common/je_lua.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/common/je_lua.h')
-rw-r--r--src/lua/common/je_lua.h54
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