aboutsummaryrefslogtreecommitdiff
path: root/ext/expert/test_expert.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2018-01-09 14:30:49 +0000
committerdan <dan@noemail.net>2018-01-09 14:30:49 +0000
commitf87ae41f52f86c9aa05fd0f0933acdb3431f5f2c (patch)
tree1972c2ecab2c9ed3284a579397809733003ff43b /ext/expert/test_expert.c
parent8ee5d0fc053c441c082c218e4b8409f1c461bd3c (diff)
downloadsqlite-f87ae41f52f86c9aa05fd0f0933acdb3431f5f2c.tar.gz
sqlite-f87ae41f52f86c9aa05fd0f0933acdb3431f5f2c.zip
Do not attempt to build the code in ext/expert/sqlite3expert.c if
SQLITE_OMIT_VIRTUALTABLE is defined. FossilOrigin-Name: ba967ad2e38590fe2a51e814a087140089be5e6a06a795a958e70a8a47f6350f
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;
}