MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / relstack

Function relstack

lib/lua/src/ldo.c:165–176  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 1

luaD_reallocstackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected