|
> 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.
Holly