On 16/03/2012 14.13, Luiz Henrique de Figueiredo wrote:
So, as PiL says 'osize' is always valid, I guess adding this line at the top of a copy of l_alloc() should keep track of allocated memory, assuming allocations always succeed:See http://www.lua.org/source/5.2/lauxlib.c.html#l_alloc
currentlyAllocated += (nsize - osize); Is that correct or are there caveats? -- Enrico