| 26 | |
| 27 | |
| 28 | static int db_getmetatable (lua_State *L) { |
| 29 | luaL_checkany(L, 1); |
| 30 | if (!lua_getmetatable(L, 1)) { |
| 31 | lua_pushnil(L); /* no metatable */ |
| 32 | } |
| 33 | return 1; |
| 34 | } |
| 35 | |
| 36 | |
| 37 | static int db_setmetatable (lua_State *L) { |
nothing calls this directly
no test coverage detected