MCPcopy Create free account
hub / github.com/cuberite/cuberite / luaD_reallocstack

Function luaD_reallocstack

lib/lua/src/ldo.c:141–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139
140
141void luaD_reallocstack (lua_State *L, int newsize) {
142 TValue *oldstack = L->stack;
143 int realsize = newsize + 1 + EXTRA_STACK;
144 lua_assert(L->stack_last - L->stack == L->stacksize - EXTRA_STACK - 1);
145 luaM_reallocvector(L, L->stack, L->stacksize, realsize, TValue);
146 L->stacksize = realsize;
147 L->stack_last = L->stack+newsize;
148 correctstack(L, oldstack);
149}
150
151
152void luaD_reallocCI (lua_State *L, int newsize) {

Callers 2

luaD_growstackFunction · 0.85
checkstacksizesFunction · 0.85

Calls 1

correctstackFunction · 0.85

Tested by

no test coverage detected