void* luaT_realloc(lua_State *L, void *ptr, long size)
Realloc ptr to size bytes. ptr must have been previously allocated with luaT_alloc or luaT_realloc, or the C malloc or realloc functions. A Lua error will be generated if running out of memory.
ptr
size
luaT_alloc
luaT_realloc
malloc
realloc