diff options
| author | Roberto I <roberto@inf.puc-rio.br> | 2025-10-17 13:53:35 -0300 |
|---|---|---|
| committer | Roberto I <roberto@inf.puc-rio.br> | 2025-10-17 13:53:35 -0300 |
| commit | b352217b8498a5ed8f6c954b3da365fcbb89751f (patch) | |
| tree | 4a2a7feb7bcf9d0144af6923807904b9bc0e4037 /lauxlib.h | |
| parent | 9c66903cc55388006a833f0f3911ea81fa86edea (diff) | |
| download | lua-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -81,6 +81,9 @@ LUALIB_API int (luaL_checkoption) (lua_State *L, int arg, const char *def, | |||
| 81 | LUALIB_API int (luaL_fileresult) (lua_State *L, int stat, const char *fname); | 81 | LUALIB_API int (luaL_fileresult) (lua_State *L, int stat, const char *fname); |
| 82 | LUALIB_API int (luaL_execresult) (lua_State *L, int stat); | 82 | LUALIB_API int (luaL_execresult) (lua_State *L, int stat); |
| 83 | 83 | ||
| 84 | LUALIB_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) |
