aboutsummaryrefslogtreecommitdiff
path: root/src/hb-private.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/hb-private.hh')
-rw-r--r--src/hb-private.hh9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/hb-private.hh b/src/hb-private.hh
index 7afb25803..179e4e9f7 100644
--- a/src/hb-private.hh
+++ b/src/hb-private.hh
@@ -611,6 +611,15 @@ static inline unsigned char TOLOWER (unsigned char c)
/* Debug */
+/* HB_NDEBUG disables some sanity checks that are very safe to disable and
+ * should be disabled in production systems. If NDEBUG is defined, enable
+ * HB_NDEBUG; but if it's desirable that normal assert()s (which are very
+ * light-weight) to be enabled, then HB_DEBUG can be defined to disable
+ * the costlier checks. */
+#ifdef NDEBUG
+#define HB_NDEBUG
+#endif
+
#ifndef HB_DEBUG
#define HB_DEBUG 0
#endif