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

Function luaD_growstack

lib/lua/src/ldo.c:161–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159
160
161void luaD_growstack (lua_State *L, int n) {
162 if (n <= L->stacksize) /* double size is enough? */
163 luaD_reallocstack(L, 2*L->stacksize);
164 else
165 luaD_reallocstack(L, L->stacksize + n);
166}
167
168
169static CallInfo *growCI (lua_State *L) {

Callers

nothing calls this directly

Calls 1

luaD_reallocstackFunction · 0.85

Tested by

no test coverage detected