MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / lua_checkstack

Function lua_checkstack

other_src/lua/src/lapi.cpp:96–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94
95
96LUA_API int lua_checkstack (lua_State *L, int size) {
97 int res = 1;
98 lua_lock(L);
99 if (size > LUAI_MAXCSTACK || (L->top - L->base + size) > LUAI_MAXCSTACK)
100 res = 0; /* stack overflow */
101 else if (size > 0) {
102 luaD_checkstack(L, size);
103 if (L->ci->top < L->top + size)
104 L->ci->top = L->top + size;
105 }
106 lua_unlock(L);
107 return res;
108}
109
110
111LUA_API void lua_xmove (lua_State *from, lua_State *to, int n) {

Callers 15

luaL_checkstackFunction · 0.70
luaB_unpackFunction · 0.70
auxresumeFunction · 0.70
pmainFunction · 0.70
handleMethod · 0.50
pendingMethod · 0.50
PushCallInMethod · 0.50
handleMethod · 0.50
pushCallInMethod · 0.50
GetOpenGLNumbersMethod · 0.50
LuaTableMethod · 0.50
CreateMeshMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected