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

Function correctstack

third-party/lua-5.5.0/src/ldo.c:269–283  ·  view source on GitHub ↗

** Change back all offsets into pointers. */

Source from the content-addressed store, hash-verified

267** Change back all offsets into pointers.
268*/
269static void correctstack (lua_State *L, StkId oldstack) {
270 CallInfo *ci;
271 UpVal *up;
272 UNUSED(oldstack);
273 L->top.p = restorestack(L, L->top.offset);
274 L->tbclist.p = restorestack(L, L->tbclist.offset);
275 for (up = L->openupval; up != NULL; up = up->u.open.next)
276 up->v.p = s2v(restorestack(L, up->v.offset));
277 for (ci = L->ci; ci != NULL; ci = ci->previous) {
278 ci->top.p = restorestack(L, ci->top.offset);
279 ci->func.p = restorestack(L, ci->func.offset);
280 if (isLua(ci))
281 ci->u.l.trap = 1; /* signal to update 'trap' in 'luaV_execute' */
282 }
283}
284
285#else
286/*

Callers 1

luaD_reallocstackFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected