| 43 | |
| 44 | |
| 45 | static int db_setmetatable (lua_State *L) { |
| 46 | int t = lua_type(L, 2); |
| 47 | luaL_argcheck(L, t == LUA_TNIL || t == LUA_TTABLE, 2, |
| 48 | "nil or table expected"); |
| 49 | lua_settop(L, 2); |
| 50 | lua_setmetatable(L, 1); |
| 51 | return 1; /* return 1st argument */ |
| 52 | } |
| 53 | |
| 54 | |
| 55 | static int db_getuservalue (lua_State *L) { |
nothing calls this directly
no test coverage detected