forked from izaya/LuPPC
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=$(TARGET)-gcc
|
||||||
CC=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/
|
BUILD = bin/
|
||||||
SOURCE = src/c/
|
SOURCE = src/c/
|
||||||
|
@ -33,10 +33,12 @@ function boot.boot()
|
|||||||
else
|
else
|
||||||
xpcall(f, function(e)
|
xpcall(f, function(e)
|
||||||
local trace = {}
|
local trace = {}
|
||||||
|
|
||||||
for s in string.gmatch(debug.traceback(e, 2), "[^\r\n]+") do
|
for s in string.gmatch(debug.traceback(e, 2), "[^\r\n]+") do
|
||||||
trace[#trace + 1] = s
|
trace[#trace + 1] = s
|
||||||
end
|
end
|
||||||
bsod("System crashed", "Stack traceback:", table.unpack(trace))
|
bsod("System crashed", "Stack traceback:", table.unpack(trace))
|
||||||
|
os.exit(4) --TODO: Run exit hooks
|
||||||
end)
|
end)
|
||||||
bsod("System quit")
|
bsod("System quit")
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user