Get back to c99 as LUA_C89_NUMBERS caused problems on ARM

This commit is contained in:
Łukasz Magiera 2016-01-19 00:28:06 +01:00
parent 0f7c1d05d6
commit 08fc944e02
2 changed files with 3 additions and 1 deletions

View File

@ -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/

View File

@ -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