summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
Diffstat (limited to 'handy.h')
-rw-r--r--handy.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/handy.h b/handy.h
index cc6b56446b..fb84cb9aff 100644
--- a/handy.h
+++ b/handy.h
@@ -270,6 +270,16 @@ typedef U64TYPE U64;
#define Ctl(ch) ((ch) & 037)
+/* This is a helper macro to avoid preprocessor issues, expanding to an
+ * assert followed by a comma under DEBUGGING (hence the comma operator). If
+ * we didn't do this, we would get a comma with nothing before it when not
+ * DEBUGGING */
+#ifdef DEBUGGING
+# define __ASSERT_(statement) assert(statement),
+#else
+# define __ASSERT_(statement)
+#endif
+
/*
=head1 SV-Body Allocation