| 706 | } |
| 707 | |
| 708 | static sdb *lsqlite_getdb(lua_State *L, int index) { |
| 709 | sdb *db = (sdb*)luaL_checkudata(L, index, sqlite_meta); |
| 710 | if (db == NULL) luaL_typerror(L, index, "sqlite database"); |
| 711 | return db; |
| 712 | } |
| 713 | |
| 714 | static sdb *lsqlite_checkdb(lua_State *L, int index) { |
| 715 | sdb *db = lsqlite_getdb(L, index); |
no test coverage detected