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

Function relstack

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

** Change all pointers to the stack into offsets. */

Source from the content-addressed store, hash-verified

160** Change all pointers to the stack into offsets.
161*/
162static void relstack (lua_State *L) {
163 CallInfo *ci;
164 UpVal *up;
165 L->top.offset = savestack(L, L->top.p);
166 L->tbclist.offset = savestack(L, L->tbclist.p);
167 for (up = L->openupval; up != NULL; up = up->u.open.next)
168 up->v.offset = savestack(L, uplevel(up));
169 for (ci = L->ci; ci != NULL; ci = ci->previous) {
170 ci->top.offset = savestack(L, ci->top.p);
171 ci->func.offset = savestack(L, ci->func.p);
172 }
173}
174
175
176/*

Callers 1

luaD_reallocstackFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected