MCPcopy Create free account
hub / github.com/F-Stack/f-stack / lua_checkstack

Function lua_checkstack

app/redis-6.2.6/deps/lua/src/lapi.c:95–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 11

luaB_unpackFunction · 0.70
auxresumeFunction · 0.70
luaL_checkstackFunction · 0.70
json_check_encode_depthFunction · 0.70
json_decode_descendFunction · 0.70
pmainFunction · 0.70
mp_packFunction · 0.70
redisProtocolToLuaTypeFunction · 0.50
luaReplyToRedisReplyFunction · 0.50
ldbRedisFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected