diff options
Diffstat (limited to 'src/libjin-lua/je_lua_jin.cpp')
-rw-r--r-- | src/libjin-lua/je_lua_jin.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libjin-lua/je_lua_jin.cpp b/src/libjin-lua/je_lua_jin.cpp index 8d79415..0796b6f 100644 --- a/src/libjin-lua/je_lua_jin.cpp +++ b/src/libjin-lua/je_lua_jin.cpp @@ -1,7 +1,7 @@ #include "common/je_lua.h" #include "common/je_lua_common.h" #include "modules/je_lua_modules.h" -#include "embed/embed.h" +#include "embed/je_lua_embed.h" #include "je_lua_jin.h" namespace JinEngine @@ -42,6 +42,8 @@ namespace JinEngine // Register jin module, keep it on the top of stack. LUA_EXPORT void open(lua_State* L) { + jin_log_info("Openning jin library."); + luax_globaltable(L, MODULE_NAME); const luax_Str s[] = { @@ -85,10 +87,13 @@ namespace JinEngine // Pop jin table. luax_pop(L, 1); + + jin_log_info("Done."); } LUA_EXPORT void boot(lua_State* L, const char* cwd) { + //luax_clearstack(L); luax_getglobal(L, MODULE_NAME); luax_newtable(L); luax_setfieldstring(L, "cwd", cwd); |