Add debug library for lua.

This allows to print tracebacks in lua and simplifies debugging.
This commit is contained in:
František Jahoda 2018-02-15 23:06:49 +01:00
parent a2d961f060
commit 01e89aaa7f
1 changed files with 2 additions and 1 deletions

View File

@ -1210,6 +1210,7 @@ static bool initLua(tic_mem* tic, const char* code)
{ LUA_TABLIBNAME, luaopen_table }, { LUA_TABLIBNAME, luaopen_table },
{ LUA_STRLIBNAME, luaopen_string }, { LUA_STRLIBNAME, luaopen_string },
{ LUA_MATHLIBNAME, luaopen_math }, { LUA_MATHLIBNAME, luaopen_math },
{ LUA_DBLIBNAME, luaopen_debug },
{ NULL, NULL } { NULL, NULL }
}; };