diff options
author | drh <> | 2021-10-05 15:30:52 +0000 |
---|---|---|
committer | drh <> | 2021-10-05 15:30:52 +0000 |
commit | 6a726fa17557cf550acb5e8e8dbca11f7d924004 (patch) | |
tree | 8852bbbea4e4a26db2024cea5d0dc56f46b55b26 /ext/misc/json1.c | |
parent | 640574f61a18e8b8193d7d4b08fbe65922f661d4 (diff) | |
download | sqlite-6a726fa17557cf550acb5e8e8dbca11f7d924004.tar.gz sqlite-6a726fa17557cf550acb5e8e8dbca11f7d924004.zip |
Fix separate compilation of json1.c, which was apparently broken by
check-in [32f33f356931242b].
FossilOrigin-Name: 0c7ece6792d30bdb314e2a6e61d0c051c3619a2d749f8b1df7dc2b1f521388bf
Diffstat (limited to 'ext/misc/json1.c')
-rw-r--r-- | ext/misc/json1.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/misc/json1.c b/ext/misc/json1.c index 6aa4e97f9..0a3e907be 100644 --- a/ext/misc/json1.c +++ b/ext/misc/json1.c @@ -96,6 +96,19 @@ static const char jsonIsSpace[] = { typedef unsigned int u32; typedef unsigned short int u16; typedef unsigned char u8; +# if defined(SQLITE_COVERAGE_TEST) || defined(SQLITE_MUTATION_TEST) +# define SQLITE_OMIT_AUXILIARY_SAFETY_CHECKS 1 +# endif +# if defined(SQLITE_OMIT_AUXILIARY_SAFETY_CHECKS) +# define ALWAYS(X) (1) +# define NEVER(X) (0) +# elif !defined(NDEBUG) +# define ALWAYS(X) ((X)?1:(assert(0),0)) +# define NEVER(X) ((X)?(assert(0),1):0) +# else +# define ALWAYS(X) (X) +# define NEVER(X) (X) +# endif #endif /* Objects */ |