| 45 | |
| 46 | |
| 47 | static int db_getmetatable (lua_State *L) { |
| 48 | luaL_checkany(L, 1); |
| 49 | if (!lua_getmetatable(L, 1)) { |
| 50 | lua_pushnil(L); /* no metatable */ |
| 51 | } |
| 52 | return 1; |
| 53 | } |
| 54 | |
| 55 | |
| 56 | static int db_setmetatable (lua_State *L) { |
nothing calls this directly
no test coverage detected