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

Function relstack

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

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

Source from the content-addressed store, hash-verified

250** Change all pointers to the stack into offsets.
251*/
252static void relstack (lua_State *L) {
253 CallInfo *ci;
254 UpVal *up;
255 L->top.offset = savestack(L, L->top.p);
256 L->tbclist.offset = savestack(L, L->tbclist.p);
257 for (up = L->openupval; up != NULL; up = up->u.open.next)
258 up->v.offset = savestack(L, uplevel(up));
259 for (ci = L->ci; ci != NULL; ci = ci->previous) {
260 ci->top.offset = savestack(L, ci->top.p);
261 ci->func.offset = savestack(L, ci->func.p);
262 }
263}
264
265
266/*

Callers 1

luaD_reallocstackFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected