Commit 01e1c272 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

xassert() now prints the expression if the assertion fails [patch 2 from Nathanael]

parent bbdd7845
......@@ -57,7 +57,7 @@ void cdiAbortC(const char *caller, const char *filename,
#define xassert(arg) do { \
if ((arg)) { } else { \
xabort("assertion failed");} \
xabort("assertion `" #arg "` failed");} \
} while(0)
void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment