feat(f4): more free memory on handsets with CCM RAM (#5804)
Alternative Lua memory allocator for radios with CCM RAM - primarily GX12 at present
This commit is contained in:
@@ -51,8 +51,8 @@ static void luaStandaloneInit()
|
||||
{
|
||||
luaClose(&lsStandalone);
|
||||
|
||||
#if defined(USE_BIN_ALLOCATOR)
|
||||
lsStandalone = lua_newstate(bin_l_alloc, nullptr); //we use our own allocator!
|
||||
#if defined(USE_CUSTOM_ALLOCATOR)
|
||||
lsStandalone = lua_newstate(custom_l_alloc, nullptr); //we use our own allocator!
|
||||
#elif defined(LUA_ALLOCATOR_TRACER)
|
||||
memclear(&lsStandaloneTrace, sizeof(lsStandaloneTrace));
|
||||
lsStandaloneTrace.script = "lua_newstate(scripts)";
|
||||
|
||||
Reference in New Issue
Block a user