Get back to c99 as LUA_C89_NUMBERS caused problems on ARM
This commit is contained in:
parent
0f7c1d05d6
commit
08fc944e02
2
Makefile
2
Makefile
@ -3,7 +3,7 @@
|
||||
#CC=$(TARGET)-gcc
|
||||
CC=gcc
|
||||
|
||||
CFLAGS=-O2 -std=c90 -Isrc/lib/lua -Iinclude -DLUA_C89_NUMBERS
|
||||
CFLAGS=-O2 -g -std=c99 -Isrc/lib/lua -Iinclude
|
||||
|
||||
BUILD = bin/
|
||||
SOURCE = src/c/
|
||||
|
@ -33,10 +33,12 @@ function boot.boot()
|
||||
else
|
||||
xpcall(f, function(e)
|
||||
local trace = {}
|
||||
|
||||
for s in string.gmatch(debug.traceback(e, 2), "[^\r\n]+") do
|
||||
trace[#trace + 1] = s
|
||||
end
|
||||
bsod("System crashed", "Stack traceback:", table.unpack(trace))
|
||||
os.exit(4) --TODO: Run exit hooks
|
||||
end)
|
||||
bsod("System quit")
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user