]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Automatically set the NDEBUG preprocessor macro unless SQLITE_DEBUG is set.
authordrh <drh@noemail.net>
Tue, 13 Sep 2005 00:00:00 +0000 (00:00 +0000)
committerdrh <drh@noemail.net>
Tue, 13 Sep 2005 00:00:00 +0000 (00:00 +0000)
In this way, assert() statements become opt-in rather than opt-out. (CVS 2690)

FossilOrigin-Name: 2ec2bd85741e36e410f05ff34de430ffbcf51eea

manifest
manifest.uuid
src/sqliteInt.h

index 523a97d5a5658e397d540d86403140f0e933d798..78af7cca26594f590b2f67d5ec6ede74ba3da01b 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Bug\sfix\sin\sthe\snew\sCOUNT(DISTINCT)\slogic.\s\sTicket\s#1420.\s(CVS\s2689)
-D 2005-09-12T23:03:17
+C Automatically\sset\sthe\sNDEBUG\spreprocessor\smacro\sunless\sSQLITE_DEBUG\sis\sset.\nIn\sthis\sway,\sassert()\sstatements\sbecome\sopt-in\srather\sthan\sopt-out.\s(CVS\s2690)
+D 2005-09-13T00:00:01
 F Makefile.in 12784cdce5ffc8dfb707300c34e4f1eb3b8a14f1
 F Makefile.linux-gcc 06be33b2a9ad4f005a5f42b22c4a19dab3cbb5c7
 F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028
@@ -66,7 +66,7 @@ F src/random.c 90adff4e73a3b249eb4f1fc2a6ff9cf78c7233a4
 F src/select.c 9ef1dddd436e1ea86a6bf64ae0ed71bf4a0b894f
 F src/shell.c 3596c1e559b82663057940d19ba533ad421c7dd3
 F src/sqlite.h.in 461b2535550cf77aedfd44385da11ef7d63e57a2
-F src/sqliteInt.h 0d38d50ebe15a16a1253c9a6f9ce4ad188e097fe
+F src/sqliteInt.h a01e12d5eb44bb516621edb81a42d0b81c3299d7
 F src/table.c 25b3ff2b39b7d87e8d4a5da0713d68dfc06cbee9
 F src/tclsqlite.c ac94682f9e601dd373912c46414a5a842db2089a
 F src/test1.c b569b60e35f0e3ea20e5ebfaf6e522a01c08d481
@@ -307,7 +307,7 @@ F www/tclsqlite.tcl 3df553505b6efcad08f91e9b975deb2e6c9bb955
 F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0
 F www/version3.tcl a99cf5f6d8bd4d5537584a2b342f0fb9fa601d8b
 F www/whentouse.tcl 97e2b5cd296f7d8057e11f44427dea8a4c2db513
-P 2f397bd8142ec5e8f7238127012d14fdb558d918
-R 618d60bfccb929a4f836778c62dd17fb
+P 37116550d33d8e3bdc15cd9998b9d2b97dec312b
+R 4b6ab4c546ad13656b76ccf88bd8477b
 U drh
-Z 26fb548fc8bf7d7e82c28eabe1666997
+Z 79948d57e91de7d6a58f8d5dadc245a4
index 0424adf2c0989135bbd55c1a503f43a4a6a48511..86b8b574ee59dbb1667fe0e8c5742a2a64f32cb2 100644 (file)
@@ -1 +1 @@
-37116550d33d8e3bdc15cd9998b9d2b97dec312b
\ No newline at end of file
+2ec2bd85741e36e410f05ff34de430ffbcf51eea
\ No newline at end of file
index e33d115f95f216474ade9e56be8d6afb3a22b007..2c407864d03fafda1dcca35c7c9707820475b347 100644 (file)
 *************************************************************************
 ** Internal interface definitions for SQLite.
 **
-** @(#) $Id: sqliteInt.h,v 1.414 2005/09/10 15:28:09 drh Exp $
+** @(#) $Id: sqliteInt.h,v 1.415 2005/09/13 00:00:01 drh Exp $
 */
 #ifndef _SQLITEINT_H_
 #define _SQLITEINT_H_
 
+/*
+** Many people are failing to set -DNDEBUG=1 when compiling SQLite.
+** Setting NDEBUG makes the code smaller and run slower.  So the following
+** lines are added to automatically set NDEBUG unless the -DSQLITE_DEBUG=1
+** option is set.  Thus NDEBUG becomes an opt-in rather than an opt-out
+** feature.
+*/
+#if !defined(NDEBUG) && defined(SQLITE_DEBUG)
+# define NDEBUG 1
+#endif
+
 /*
 ** These #defines should enable >2GB file support on Posix if the
 ** underlying operating system supports it.  If the OS lacks