From 01e89aaa7f2a6fc50ed6b43e9fb937548e158cbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Jahoda?= Date: Thu, 15 Feb 2018 23:06:49 +0100 Subject: [PATCH] Add debug library for lua. This allows to print tracebacks in lua and simplifies debugging. --- src/luaapi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/luaapi.c b/src/luaapi.c index 640f608..0ccf219 100644 --- a/src/luaapi.c +++ b/src/luaapi.c @@ -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; -} \ No newline at end of file +}