Hello,
I stumbled about the Lua C API functions lua_getallocf() and lua_setallocf() recently, described shortly in the Lua 5.1+ manuals.
Searching the Internet, there are no helpful hints, unfortunately.
What are they for ?
Yours,
Alex
http://agena.sourceforge.net
As others said, it allows one to get/set the default memory allocator function used by Lua (see https://www.lua.org/manual/5.1/manual.html#lua_Alloc ). In simple terms, it allows you to use (lua_getallocf) or redefine (lua_setallocf) `malloc', `realloc' and `free' routines used by Lua and its modules.
--
You received this message because you are subscribed to the Google Groups "lua-l" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lua-l+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/lua-l/1758378077149.153494.a970b60657db676524a751130b004f5f29409e82%40spica.telekom.de.
I stumbled about the Lua C API functions lua_getallocf() and lua_setallocf() recently, described shortly in the Lua 5.1+ manuals.