lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> I'm just starting with Lua embedding, but what use does lua_setallocf
> have? It seems extremely dangerous in general due to the potential
> allocator mismatch issue.

Besides Alex's suggestions, another use is to insert probes around
the original allocator. But certainly it is an "extremely dangerous"
function.

-- Roberto