| 738 | } |
| 739 | |
| 740 | static lcontext *lsqlite_getcontext(lua_State *L, int index) { |
| 741 | lcontext *ctx = (lcontext*)luaL_checkudata(L, index, sqlite_ctx_meta); |
| 742 | if (ctx == NULL) luaL_typerror(L, index, "sqlite context"); |
| 743 | return ctx; |
| 744 | } |
| 745 | |
| 746 | static lcontext *lsqlite_checkcontext(lua_State *L, int index) { |
| 747 | lcontext *ctx = lsqlite_getcontext(L, index); |
no test coverage detected