diff options
Diffstat (limited to 'src/test_config.c')
-rw-r--r-- | src/test_config.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/test_config.c b/src/test_config.c index 17c1c584b..1fda2fc32 100644 --- a/src/test_config.c +++ b/src/test_config.c @@ -16,7 +16,7 @@ ** The focus of this file is providing the TCL testing layer ** access to compile-time constants. ** -** $Id: test_config.c,v 1.11 2007/08/21 10:44:16 drh Exp $ +** $Id: test_config.c,v 1.12 2007/08/22 20:18:22 drh Exp $ */ #include "sqliteInt.h" #include "tcl.h" @@ -59,6 +59,12 @@ static void set_options(Tcl_Interp *interp){ Tcl_SetVar2(interp, "sqlite_options", "lfs", "1", TCL_GLOBAL_ONLY); #endif +#ifdef SQLITE_MEMDEBUG + Tcl_SetVar2(interp, "sqlite_options", "memdebug", "1", TCL_GLOBAL_ONLY); +#else + Tcl_SetVar2(interp, "sqlite_options", "memdebug", "0", TCL_GLOBAL_ONLY); +#endif + #ifdef SQLITE_OMIT_ALTERTABLE Tcl_SetVar2(interp, "sqlite_options", "altertable", "0", TCL_GLOBAL_ONLY); #else |