[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: API to access the Allocator UserData?
- From: Peter Cawley <lua@...>
- Date: Wed, 18 Nov 2009 17:51:59 +0000
On Wed, Nov 18, 2009 at 5:40 PM, John Hind <email@example.com> wrote:
> However, while this is passed back to the memory
> allocator function, there is no API to recover it from the lua_State.
lua_Alloc lua_getallocf (lua_State *L, void **ud);
Returns the memory-allocation function of a given state. If ud is not
NULL, Lua stores in *ud the opaque pointer passed to lua_newstate.