summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-15 21:32:35 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-15 21:32:35 -0400
commit3946c490f6d410f91c08884aae912faec70f1e34 (patch)
tree897f5f9962c7eb5c223a77dde09fd29353aeeee0 /src
parent7a208499d853c980cf031c12da9404ba66d12294 (diff)
prevent double definition of NDEBUG
Diffstat (limited to 'src')
-rw-r--r--src/_assert.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/_assert.h b/src/_assert.h
index 7dbafed9..0da010ab 100644
--- a/src/_assert.h
+++ b/src/_assert.h
@@ -1,7 +1,9 @@
#ifndef ___ASSERT_H__
#define ___ASSERT_H__
+#ifndef NDEBUG
#define NDEBUG
+#endif
#ifndef NDEBUG
#define ASSERT_NONNULL(__ptr) do { \