summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-03-01 13:14:46 +0100
committerChristian Grothoff <christian@grothoff.org>2020-03-01 13:14:46 +0100
commit2906aeb45939efa0fb5b4ab85878eb2e86418933 (patch)
tree0d4d87d3411a40a223e20752e51fb909856e6180
parentf979ee9acaa69bfb26973db43c1c82f704f6b01d (diff)
downloadexchange-2906aeb45939efa0fb5b4ab85878eb2e86418933.tar.gz
exchange-2906aeb45939efa0fb5b4ab85878eb2e86418933.tar.bz2
exchange-2906aeb45939efa0fb5b4ab85878eb2e86418933.zip
add ENABLE_SANITY_CHECKS #define instead of using '1'
-rw-r--r--src/include/platform.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/platform.h b/src/include/platform.h
index 847e024b..ec2f7076 100644
--- a/src/include/platform.h
+++ b/src/include/platform.h
@@ -55,6 +55,13 @@
to "ancient" MHD releases. */
#define MHD_NO_DEPRECATION 1
+/* Enable additional sanity checks that may result in a moderate
+ loss of performance but could be helpful to spot bugs. This
+ option should be enabled unless we are running benchmarks and/or
+ really need the last bit of performance. So even in production,
+ the default should be 'on' unless it was established that this
+ is needed for performance reasons. */
+#define ENABLE_SANITY_CHECKS 1
#endif /* PLATFORM_H_ */