aboutsummaryrefslogtreecommitdiff
path: root/ext/expert/test_expert.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/expert/test_expert.c')
-rw-r--r--ext/expert/test_expert.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/expert/test_expert.c b/ext/expert/test_expert.c
index ad83872f9..064c1908a 100644
--- a/ext/expert/test_expert.c
+++ b/ext/expert/test_expert.c
@@ -26,6 +26,8 @@
# endif
#endif
+#ifndef SQLITE_OMIT_VIRTUALTABLE
+
/*
** Extract an sqlite3* db handle from the object passed as the second
** argument. If successful, set *pDb to point to the db handle and return
@@ -195,7 +197,10 @@ static int SQLITE_TCLAPI test_sqlite3_expert_new(
return rc;
}
+#endif /* ifndef SQLITE_OMIT_VIRTUALTABLE */
+
int TestExpert_Init(Tcl_Interp *interp){
+#ifndef SQLITE_OMIT_VIRTUALTABLE
struct Cmd {
const char *zCmd;
Tcl_ObjCmdProc *xProc;
@@ -208,7 +213,7 @@ int TestExpert_Init(Tcl_Interp *interp){
struct Cmd *p = &aCmd[i];
Tcl_CreateObjCommand(interp, p->zCmd, p->xProc, 0, 0);
}
-
+#endif
return TCL_OK;
}