Skip to content

Commit

Permalink
enable LUA52COMPAT
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneia committed Aug 30, 2022
1 parent 62d4ae4 commit e451f5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions src/core/main.lua
Expand Up @@ -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
Expand Down

0 comments on commit e451f5e

Please sign in to comment.