MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / luaM_saferealloc_

Function luaM_saferealloc_

lib/lua/src/lmem.c:192–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190
191
192void *luaM_saferealloc_ (lua_State *L, void *block, size_t osize,
193 size_t nsize) {
194 void *newblock = luaM_realloc_(L, block, osize, nsize);
195 if (l_unlikely(newblock == NULL && nsize > 0)) /* allocation failed? */
196 luaM_error(L);
197 return newblock;
198}
199
200
201void *luaM_malloc_ (lua_State *L, size_t size, int tag) {

Callers 2

luaM_growaux_Function · 0.85
luaM_shrinkvector_Function · 0.85

Calls 1

luaM_realloc_Function · 0.85

Tested by

no test coverage detected