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

Function correctstack

third-party/lua-5.4.6/src/ldo.c:179–192  ·  view source on GitHub ↗

** Change back all offsets into pointers. */

Source from the content-addressed store, hash-verified

177** Change back all offsets into pointers.
178*/
179static void correctstack (lua_State *L) {
180 CallInfo *ci;
181 UpVal *up;
182 L->top.p = restorestack(L, L->top.offset);
183 L->tbclist.p = restorestack(L, L->tbclist.offset);
184 for (up = L->openupval; up != NULL; up = up->u.open.next)
185 up->v.p = s2v(restorestack(L, up->v.offset));
186 for (ci = L->ci; ci != NULL; ci = ci->previous) {
187 ci->top.p = restorestack(L, ci->top.offset);
188 ci->func.p = restorestack(L, ci->func.offset);
189 if (isLua(ci))
190 ci->u.l.trap = 1; /* signal to update 'trap' in 'luaV_execute' */
191 }
192}
193
194
195/* some space for error handling */

Callers 1

luaD_reallocstackFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected