Standard allocator function added to the API

That makes easier to redefine luaL_newstate.
This commit is contained in:
Roberto I
2025-10-17 13:53:35 -03:00
parent 9c66903cc5
commit b352217b84
3 changed files with 28 additions and 15 deletions

View File

@@ -81,6 +81,9 @@ LUALIB_API int (luaL_checkoption) (lua_State *L, int arg, const char *def,
LUALIB_API int (luaL_fileresult) (lua_State *L, int stat, const char *fname);
LUALIB_API int (luaL_execresult) (lua_State *L, int stat);
LUALIB_API void *luaL_alloc (void *ud, void *ptr, size_t osize,
size_t nsize);
/* predefined references */
#define LUA_NOREF (-2)