I can't compile with Linux, I read that luaL_register is deprecated to lua_newlibs, anyone knows how it works??
This code:
This code:
Code:
luaL_register(m_luaState, "os", LuaInterface::luaSystemTable);
//db table
luaL_register(m_luaState, "db", LuaInterface::luaDatabaseTable);
//result table
luaL_register(m_luaState, "result", LuaInterface::luaResultTable);
//bit table
luaL_register(m_luaState, "bit", LuaInterface::luaBitTable);
//std table
luaL_register(m_luaState, "std", LuaInterface::luaStdTable);