MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / resetCI

Function resetCI

third-party/lua-5.5.0/src/lstate.c:146–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144
145
146static void resetCI (lua_State *L) {
147 CallInfo *ci = L->ci = &L->base_ci;
148 ci->func.p = L->stack.p;
149 setnilvalue(s2v(ci->func.p)); /* 'function' entry for basic 'ci' */
150 ci->top.p = ci->func.p + 1 + LUA_MINSTACK; /* +1 for 'function' entry */
151 ci->u.c.k = NULL;
152 ci->callstatus = CIST_C;
153 L->status = LUA_OK;
154 L->errfunc = 0; /* stack unwind can "throw away" the error function */
155}
156
157
158static void stack_init (lua_State *L1, lua_State *L) {

Callers 3

stack_initFunction · 0.85
close_stateFunction · 0.85
luaE_resetthreadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected