[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Memory Allocation Hooks
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 13 Jan 2005 17:09:34 -0200
> For the future, I respectfully request that a pointer to the Lua state
> be made an official parameter to l_realloc() and related macros.
The new system allows you to specify both the allocator function *and*
a related user data. The allocator function always gets that user data
when called:
typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize);
^^^^^^^^
-- Roberto