MCPcopy Create free account
hub / github.com/DFHack/dfhack / db_upvaluejoin

Function db_upvaluejoin

depends/lua/src/ldblib.c:291–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289
290
291static int db_upvaluejoin (lua_State *L) {
292 int n1 = checkupval(L, 1, 2);
293 int n2 = checkupval(L, 3, 4);
294 luaL_argcheck(L, !lua_iscfunction(L, 1), 1, "Lua function expected");
295 luaL_argcheck(L, !lua_iscfunction(L, 3), 3, "Lua function expected");
296 lua_upvaluejoin(L, 1, n1, 3, n2);
297 return 0;
298}
299
300
301/*

Callers

nothing calls this directly

Calls 3

checkupvalFunction · 0.85
lua_iscfunctionFunction · 0.85
lua_upvaluejoinFunction · 0.85

Tested by

no test coverage detected