aboutsummaryrefslogtreecommitdiff
path: root/lauxlib.h
diff options
context:
space:
mode:
authorRoberto I <roberto@inf.puc-rio.br>2025-10-17 13:53:35 -0300
committerRoberto I <roberto@inf.puc-rio.br>2025-10-17 13:53:35 -0300
commitb352217b8498a5ed8f6c954b3da365fcbb89751f (patch)
tree4a2a7feb7bcf9d0144af6923807904b9bc0e4037 /lauxlib.h
parent9c66903cc55388006a833f0f3911ea81fa86edea (diff)
downloadlua-b352217b8498a5ed8f6c954b3da365fcbb89751f.tar.gz
lua-b352217b8498a5ed8f6c954b3da365fcbb89751f.tar.bz2
lua-b352217b8498a5ed8f6c954b3da365fcbb89751f.zip
Standard allocator function added to the API
That makes easier to redefine luaL_newstate.
Diffstat (limited to 'lauxlib.h')
-rw-r--r--lauxlib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lauxlib.h b/lauxlib.h
index d8522098..7f1d3ca1 100644
--- a/lauxlib.h
+++ b/lauxlib.h
@@ -81,6 +81,9 @@ LUALIB_API int (luaL_checkoption) (lua_State *L, int arg, const char *def,
81LUALIB_API int (luaL_fileresult) (lua_State *L, int stat, const char *fname); 81LUALIB_API int (luaL_fileresult) (lua_State *L, int stat, const char *fname);
82LUALIB_API int (luaL_execresult) (lua_State *L, int stat); 82LUALIB_API int (luaL_execresult) (lua_State *L, int stat);
83 83
84LUALIB_API void *luaL_alloc (void *ud, void *ptr, size_t osize,
85 size_t nsize);
86
84 87
85/* predefined references */ 88/* predefined references */
86#define LUA_NOREF (-2) 89#define LUA_NOREF (-2)