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

Function lua_xmove

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

Source from the content-addressed store, hash-verified

107
108
109LUA_API void lua_xmove (lua_State *from, lua_State *to, int n) {
110 int i;
111 if (from == to) return;
112 lua_lock(to);
113 api_checknelems(from, n);
114 api_check(from, G(from) == G(to), "moving among independent states");
115 api_check(from, to->ci->top - to->top >= n, "not enough elements to move");
116 from->top -= n;
117 for (i = 0; i < n; i++) {
118 setobj2s(to, to->top++, from->top + i);
119 }
120 lua_unlock(to);
121}
122
123
124LUA_API lua_CFunction lua_atpanic (lua_State *L, lua_CFunction panicf) {

Callers 2

auxresumeFunction · 0.70
luaB_cocreateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected