From e451f5e3a0e9e78773055ba238a0c05c0c21cf7b Mon Sep 17 00:00:00 2001 From: Max Rottenkolber Date: Sat, 7 May 2022 13:11:20 +0200 Subject: [PATCH] enable LUA52COMPAT --- Makefile | 2 +- src/core/main.lua | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index da723fb98b..378562ce97 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ CSRC = $(wildcard src/c/*.c) COBJ = $(CSRC:.c=.o) PREFIX = /usr/local -LUAJIT_CFLAGS := -include $(CURDIR)/gcc-preinclude.h +LUAJIT_CFLAGS := -include $(CURDIR)/gcc-preinclude.h -DLUAJIT_ENABLE_LUA52COMPAT all: $(LUAJIT) $(SYSCALL) $(PFLUA) # LuaJIT diff --git a/src/core/main.lua b/src/core/main.lua index 433fa3c09a..ef7555c323 100644 --- a/src/core/main.lua +++ b/src/core/main.lua @@ -168,8 +168,7 @@ function initialize () end function handler (reason) - print(reason) - print(STP.stacktrace()) + print(debug.traceback(reason)) if debug_on_error then debug.debug() end os.exit(1) end