MCPcopy Create free account
hub / github.com/Tencent/UnLua / lua_getallocf

Function lua_getallocf

Plugins/UnLua/Source/ThirdParty/Lua/lua-5.4.3/src/lapi.c:1301–1308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1299
1300
1301LUA_API lua_Alloc lua_getallocf (lua_State *L, void **ud) {
1302 lua_Alloc f;
1303 lua_lock(L);
1304 if (ud) *ud = G(L)->ud;
1305 f = G(L)->frealloc;
1306 lua_unlock(L);
1307 return f;
1308}
1309
1310
1311LUA_API void lua_setallocf (lua_State *L, lua_Alloc f, void *ud) {

Callers 4

newstateFunction · 0.85
checkpanicFunction · 0.85
luaB_opentestsFunction · 0.85
resizeboxFunction · 0.85

Calls

no outgoing calls

Tested by 3

newstateFunction · 0.68
checkpanicFunction · 0.68
luaB_opentestsFunction · 0.68