Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment