diff options
author | chai <chaifix@163.com> | 2018-12-22 12:25:06 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-12-22 12:25:06 +0800 |
commit | 013438437f1f530609578454cf1123a84749f70d (patch) | |
tree | b4bb495e6cf7f1cb81c3765d66c37d0fe3afbf7f /src/libjin-lua/je_lua_jin.cpp | |
parent | f319b9646941c8967db7e48079689483e13c00e4 (diff) |
*misc
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); |