| 11552 | |
| 11553 | |
| 11554 | static int db_setmetatable (lua_State *L) { |
| 11555 | int t = lua_type(L, 2); |
| 11556 | luaL_argcheck(L, t == LUA_TNIL || t == LUA_TTABLE, 2, |
| 11557 | "nil or table expected"); |
| 11558 | lua_settop(L, 2); |
| 11559 | lua_pushboolean(L, lua_setmetatable(L, 1)); |
| 11560 | return 1; |
| 11561 | } |
| 11562 | |
| 11563 | |
| 11564 | static int db_getfenv (lua_State *L) { |
nothing calls this directly
no test coverage detected