Browse Source

Get back to c99 as LUA_C89_NUMBERS caused problems on ARM

pull/4/head
Łukasz Magiera 7 years ago
parent
commit
08fc944e02
  1. 2
      Makefile
  2. 2
      src/lua/core/boot.lua

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/

2
src/lua/core/boot.lua

@ -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…
Cancel
Save