diff options
author | chai <chaifix@163.com> | 2018-12-22 16:59:23 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-12-22 16:59:23 +0800 |
commit | 0406abe6a55b92acc322d4499389239075bf2185 (patch) | |
tree | a5272254114792a4bddc1e5af5ed796abc1360b7 /src/libjin-lua/je_lua_jin.cpp | |
parent | 9a9dbae62346c7295329dac65731b948e494dca5 (diff) |
*注释
Diffstat (limited to 'src/libjin-lua/je_lua_jin.cpp')
-rw-r--r-- | src/libjin-lua/je_lua_jin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libjin-lua/je_lua_jin.cpp b/src/libjin-lua/je_lua_jin.cpp index 37b8358..fec1544 100644 --- a/src/libjin-lua/je_lua_jin.cpp +++ b/src/libjin-lua/je_lua_jin.cpp @@ -40,6 +40,7 @@ namespace JinEngine } // Register jin module, keep it on the top of stack. + // The reason why not using luaL_register is because we want register some variables into jin module. LUA_EXPORT void open(lua_State* L) { jin_log_info("Openning jin library."); @@ -93,7 +94,7 @@ namespace JinEngine LUA_EXPORT void boot(lua_State* L, const char* cwd) { - //luax_clearstack(L); + luax_clearstack(L); luax_getglobal(L, MODULE_NAME); luax_newtable(L); luax_setfieldstring(L, "cwd", cwd); |