MCPcopy Create free account
hub / github.com/F-Stack/f-stack / moveto

Function moveto

freebsd/contrib/openzfs/module/lua/lapi.c:203–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201
202
203static void moveto (lua_State *L, TValue *fr, int idx) {
204 TValue *to = index2addr(L, idx);
205 api_checkvalidindex(L, to);
206 setobj(L, to, fr);
207 if (idx < LUA_REGISTRYINDEX) /* function upvalue? */
208 luaC_barrier(L, clCvalue(L->ci->func), fr);
209 /* LUA_REGISTRYINDEX does not need gc barrier
210 (collector revisits it before finishing collection) */
211}
212
213
214LUA_API void lua_replace (lua_State *L, int idx) {

Callers 2

lua_replaceFunction · 0.85
lua_copyFunction · 0.85

Calls 1

index2addrFunction · 0.85

Tested by

no test coverage detected