| 298 | |
| 299 | |
| 300 | static int db_upvaluejoin (lua_State *L) { |
| 301 | int n1 = checkupval(L, 1, 2); |
| 302 | int n2 = checkupval(L, 3, 4); |
| 303 | luaL_argcheck(L, !lua_iscfunction(L, 1), 1, "Lua function expected"); |
| 304 | luaL_argcheck(L, !lua_iscfunction(L, 3), 3, "Lua function expected"); |
| 305 | lua_upvaluejoin(L, 1, n1, 3, n2); |
| 306 | return 0; |
| 307 | } |
| 308 | |
| 309 | |
| 310 | /* |
nothing calls this directly
no test coverage detected