Changed calling conventions again
This commit is contained in:
@@ -14,8 +14,6 @@
|
||||
#include <string>
|
||||
#include "luastack.hpp"
|
||||
#include "util.hpp"
|
||||
#include "table.hpp"
|
||||
#include "globaldb.hpp"
|
||||
#include "source.hpp"
|
||||
|
||||
|
||||
@@ -200,21 +198,11 @@ static int pmain(lua_State *L)
|
||||
|
||||
LUAJIT_VERSION_SYM(); /* Linker-enforced version check. */
|
||||
|
||||
lua_gc(L, LUA_GCSTOP, 0);
|
||||
luaopen_base(L);
|
||||
// luaopen_package(L); // Omitted because we use our own package system.
|
||||
luaopen_table(L); // Standard table operations.
|
||||
luaopen_lpx_table(L); // Supplemental table operations.
|
||||
// luaopen_io(L); // Not safe for the sandbox.
|
||||
// luaopen_os(L); // Not safe for the sandbox.
|
||||
luaopen_string(L);
|
||||
luaopen_math(L);
|
||||
// luaopen_debug(L); // Not safe for the sandbox.
|
||||
luaopen_bit(L);
|
||||
// luaopen_jit(L); // Don't know what it's for.
|
||||
luaopen_lpx_globaldb(L);
|
||||
luaopen_lpx_source(L);
|
||||
lua_gc(L, LUA_GCRESTART, -1);
|
||||
// Load the lua source.
|
||||
source_update(L);
|
||||
|
||||
// Rebuild the global environment and class database.
|
||||
source_rebuild(L);
|
||||
|
||||
dotty(L);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user