lua-users home
lua-l archive

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


> 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