Commit a50c549a authored by Hanspeter Portner's avatar Hanspeter Portner

Lua: compile in 'debug' library.

parent df1ce11d
......@@ -141,11 +141,11 @@ add_library(lua OBJECT
lua-5.3.3/lzio.c
#lua-5.3.3/lbitlib.c
#lua-5.3.3/ldblib.c
#lua-5.3.3/liolib.c
#lua-5.3.3/loslib.c
#lua-5.3.3/loadlib.c
#lua-5.3.3/linit.c
lua-5.3.3/ldblib.c
lua-5.3.3/lbaselib.c
lua-5.3.3/lauxlib.c
lua-5.3.3/lcorolib.c
......
......@@ -168,14 +168,14 @@ moony_vm_init(moony_vm_t *vm)
luaL_requiref(vm->L, "coroutine", luaopen_coroutine, 1);
luaL_requiref(vm->L, "table", luaopen_table, 1);
luaL_requiref(vm->L, "string", luaopen_string, 1);
luaL_requiref(vm->L, "utf8", luaopen_utf8, 1);
luaL_requiref(vm->L, "math", luaopen_math, 1);
lua_pop(vm->L, 6);
luaL_requiref(vm->L, "utf8", luaopen_utf8, 1);
luaL_requiref(vm->L, "debug", luaopen_debug, 1);
lua_pop(vm->L, 7);
//luaL_requiref(vm->L, "io", luaopen_io, 1);
//luaL_requiref(vm->L, "os", luaopen_os, 1);
//luaL_requiref(vm->L, "bit32", luaopen_bit32, 1);
//luaL_requiref(vm->L, "debug", luaopen_debug, 1);
//luaL_requiref(vm->L, "package", luaopen_package, 1);
#ifdef USE_MANUAL_GC
......
......@@ -261,7 +261,5 @@ main(int argc, char **argv)
moony_deinit(&handle.moony);
printf("\n[test] Sucessful\n");
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment