lua-users home
lua-l archive

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


> Using the Lua custom allocator is a nice idea, at least this could do
> up/down counting to know the number of Lua objects. Is there any
> example how to (mis)use lua_setallocf for this, is there a
> lua_setfreef() as well? I cannot find any info on that.

The file 'ltests.c' in the test distribution has a good example.

  http://www.lua.org/tests/

-- Roberto