| 52 | |
| 53 | |
| 54 | static int db_setfenv (lua_State *L) { |
| 55 | luaL_checktype(L, 2, LUA_TTABLE); |
| 56 | lua_settop(L, 2); |
| 57 | if (lua_setfenv(L, 1) == 0) |
| 58 | luaL_error(L, LUA_QL("setfenv") |
| 59 | " cannot change environment of given object"); |
| 60 | return 1; |
| 61 | } |
| 62 | |
| 63 | |
| 64 | static void settabss (lua_State *L, const char *i, const char *v) { |
nothing calls this directly
no test coverage detected