lua-users home
lua-l archive

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

> When Lua wants to allocate a new chunk, it calls that function with
> ptr = NULL and osize is an *enumeration* value

Thanks, this looks like a very clean approach. I guess the way to
implement it is to get the default allocator with lua_getallocf and wrap
that in a function which I pass to lua_setallocf.