1
0
mirror of https://github.com/elua/elua.git synced 2025-01-08 20:56:17 +08:00

Fix for weird compilation error

This commit is contained in:
Bogdan Marinescu 2018-06-12 01:03:28 +03:00
parent 8885873138
commit acff101dbb

View File

@ -97,7 +97,7 @@ local function ram_generator( desc, vals, generated )
use_multiple_allocator = #startvals > 1 use_multiple_allocator = #startvals > 1
local gstr = gen.simple_gen( "MEM_START_ADDRESS", vals, generated ) local gstr = gen.simple_gen( "MEM_START_ADDRESS", vals, generated )
gstr = gstr .. gen.simple_gen( "MEM_END_ADDRESS", vals, generated ) gstr = gstr .. gen.simple_gen( "MEM_END_ADDRESS", vals, generated )
if vals.MEM_ERROR_CALLBACK then if vals.MEM_ERROR_CALLBACK and not generated.MEM_ERROR_CALLBACK and #vals.MEM_ERROR_CALLBACK.value > 0 then
gstr = gstr .. gen.simple_gen( "MEM_ERROR_CALLBACK", vals, generated ) gstr = gstr .. gen.simple_gen( "MEM_ERROR_CALLBACK", vals, generated )
gstr = gstr .. sf( "void %s( size_t );\n", vals.MEM_ERROR_CALLBACK.value ) gstr = gstr .. sf( "void %s( size_t );\n", vals.MEM_ERROR_CALLBACK.value )
end end