MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / db_upvaluejoin

Function db_upvaluejoin

3rd/lua-5.4.3/src/ldblib.c:308–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306
307
308static int db_upvaluejoin (lua_State *L) {
309 int n1, n2;
310 checkupval(L, 1, 2, &n1);
311 checkupval(L, 3, 4, &n2);
312 luaL_argcheck(L, !lua_iscfunction(L, 1), 1, "Lua function expected");
313 luaL_argcheck(L, !lua_iscfunction(L, 3), 3, "Lua function expected");
314 lua_upvaluejoin(L, 1, n1, 3, n2);
315 return 0;
316}
317
318
319/*

Callers

nothing calls this directly

Calls 3

checkupvalFunction · 0.85
lua_iscfunctionFunction · 0.85
lua_upvaluejoinFunction · 0.85

Tested by

no test coverage detected