summaryrefslogtreecommitdiff
path: root/pr/include/prlog.h
diff options
context:
space:
mode:
Diffstat (limited to 'pr/include/prlog.h')
-rw-r--r--pr/include/prlog.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/pr/include/prlog.h b/pr/include/prlog.h
index a1f57e4d..1922c255 100644
--- a/pr/include/prlog.h
+++ b/pr/include/prlog.h
@@ -207,12 +207,16 @@ PR_PRETEND_NORETURN;
#define PR_ASSERT(_expr) \
((_expr)?((void)0):PR_Assert(# _expr,__FILE__,__LINE__))
+#define PR_ASSERT_ARG(_expr) PR_ASSERT(_expr)
+
#define PR_NOT_REACHED(_reasonStr) \
PR_Assert(_reasonStr,__FILE__,__LINE__)
#else
#define PR_ASSERT(expr) ((void) 0)
+/* PR_ASSERT_ARG avoids compiler warning: unused variable */
+#define PR_ASSERT_ARG(expr) ((void)(0 && (expr)))
#define PR_NOT_REACHED(reasonStr)
#endif /* defined(DEBUG) || defined(FORCE_PR_ASSERT) */