mirror of
https://github.com/lua/lua
synced 2026-09-27 00:28:25 +03:00
Standard allocator function added to the API
That makes easier to redefine luaL_newstate.
This commit is contained in:
parent
9c66903cc5
commit
b352217b84
3 changed files with 28 additions and 15 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue