summaryrefslogtreecommitdiff
path: root/src/nonstd/ASSERT_NONZERO.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nonstd/ASSERT_NONZERO.c')
-rw-r--r--src/nonstd/ASSERT_NONZERO.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/nonstd/ASSERT_NONZERO.c b/src/nonstd/ASSERT_NONZERO.c
deleted file mode 100644
index e48e775a..00000000
--- a/src/nonstd/ASSERT_NONZERO.c
+++ /dev/null
@@ -1,14 +0,0 @@
-#include <nonstd/assert.h>
-
-#ifndef NDEBUG
-#define ASSERT_NONZERO(__n) do { \
- if (!__n) { \
- struct __constraint_info _ci = {0}; \
- _ci.func = __func__; \
- __libc.stdlib.constraint_handler("Undefined behavior: " \
- "Parameter " #__n " can not be 0", &_ci, ERANGE); \
- } \
- } while (0)
-#else
-#define ASSERT_NONZERO(n)
-#endif