Add BEAST_SQLITE_FORCE_NDEBUG option

This commit is contained in:
JoelKatz
2013-11-26 13:34:21 -08:00
committed by Vinnie Falco
parent 9e5619ce99
commit 760f51910f
3 changed files with 15 additions and 0 deletions

View File

@@ -81,6 +81,10 @@
#define BEAST_ZLIB_INCLUDE_PATH <zlib.h>
#endif
#ifndef BEAST_SQLITE_FORCE_NDEBUG
#define BEAST_SQLITE_FORCE_NDEBUG 0
#endif
#ifndef BEAST_STRING_UTF_TYPE
#define BEAST_STRING_UTF_TYPE 8
#endif

View File

@@ -107,6 +107,13 @@
#define BEAST_ZLIB_INCLUDE_PATH <zlib.h>
#endif
/** Config: BEAST_SQLITE_FORCE_NDEBUG
Setting this option forces sqlite into release mode even if NDEBUG is not set
*/
#ifndef BEAST_SQLITE_FORCE_NDEBUG
//#define BEAST_SQLITE_FORCE_NDEBUG 1
#endif
/** Config: BEAST_FUNCTIONAL_USES_###
<functional> source configuration.
Set one of these to manually force a particular implementation of bind().

View File

@@ -57,6 +57,10 @@
*/
//#define SQLITE_THREADSAFE 2
#if defined (BEAST_SQLITE_USE_NDEBUG) && BEAST_SQLITE_USE_NDEBUG && !defined (NDEBUG)
#define NDEBUG
#endif
#include "sqlite/sqlite3.c"
#if BEAST_MSVC