MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / lua_checkstack

Function lua_checkstack

lua/lapi.c: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 9

luaB_unpackFunction · 0.85
auxresumeFunction · 0.85
luaL_checkstackFunction · 0.85
pmainFunction · 0.85
push_clnt_colsFunction · 0.85
cson_to_tableFunction · 0.85
cson_to_table_annotatedFunction · 0.85
table_to_csonFunction · 0.85
push_argsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected