Add debug library for lua.
This allows to print tracebacks in lua and simplifies debugging.
This commit is contained in:
parent
a2d961f060
commit
01e89aaa7f
|
@ -1210,6 +1210,7 @@ static bool initLua(tic_mem* tic, const char* code)
|
|||
{ LUA_TABLIBNAME, luaopen_table },
|
||||
{ LUA_STRLIBNAME, luaopen_string },
|
||||
{ LUA_MATHLIBNAME, luaopen_math },
|
||||
{ LUA_DBLIBNAME, luaopen_debug },
|
||||
{ NULL, NULL }
|
||||
};
|
||||
|
||||
|
@ -1569,4 +1570,4 @@ static const tic_script_config MoonSyntaxConfig =
|
|||
const tic_script_config* getMoonScriptConfig()
|
||||
{
|
||||
return &MoonSyntaxConfig;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue