aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/plat.h b/plat.h
index ac41b7e..3c91ef6 100644
--- a/plat.h
+++ b/plat.h
@@ -9,6 +9,7 @@ struct Heap;
#undef assert
#endif
+#ifdef DEBUG
#define assert(expr) \
imp_assert( \
expr, \
@@ -16,6 +17,9 @@ struct Heap;
__FILE__, \
__LINE__ \
)
+#else
+#define assert(expr)
+#endif
int imp_assert(
int val,