42 #define MINSIZEARRAY 4
49 if (*size >= limit/2) {
59 newblock =
luaM_reallocv(L, block, *size, newsize, size_elems);
77 size_t realosize = (
block) ? osize : 0;
78 lua_assert((realosize == 0) == (block == NULL));
79 #if defined(HARDMEMTESTS)
83 newblock = (*g->
frealloc)(g->
ud, block, osize, nsize);
84 if (newblock == NULL && nsize > 0) {
86 "realloc cannot fail when shrinking a block");
89 newblock = (*g->
frealloc)(g->
ud, block, osize, nsize);
94 lua_assert((nsize == 0) == (newblock == NULL));
l_noret luaG_runerror(lua_State *L, const char *fmt,...)
#define luaM_reallocv(L, b, on, n, e)
const char * what() const
void * luaM_realloc_(lua_State *L, void *block, size_t osize, size_t nsize)
void * luaM_growaux_(lua_State *L, void *block, int *size, size_t size_elems, int limit, const char *what)
l_noret luaD_throw(lua_State *L, int errcode)
static void block(LexState *ls)
#define api_check(l, e, msg)
void luaC_fullgc(lua_State *L, int isemergency)
l_noret luaM_toobig(lua_State *L)