|
Why do you need to invoke luaC_fullgc with a 1 for emergency collection? The only difference is that the emergency collection does not call finalizers and does not resize some structures, but I do not see why not to use lua_gc(LUA_GCCOLLECT).... I would prefer to use lua_gc for this, but lua_gc(LUA_GCCOLLECT) would only invoke luaC_fullgc( L, 0)... .
Regards, Xmilia