Commit 54ada88d authored by Cedric Roux's avatar Cedric Roux

- Put "Exiting execution" key phrase in assertions to allow catching these errors in pre-ci

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4681 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 0691204a
......@@ -41,6 +41,7 @@ do { \
__FILE__, __LINE__, __FUNCTION__); \
fprintf(stderr, #vALUE1": %"PRIdMAX"\n"#vALUE2": %"PRIdMAX"\n"#vALUE3": %"PRIdMAX"\n", \
(intmax_t)vALUE1, (intmax_t)vALUE2, (intmax_t)vALUE3); \
fprintf(stderr, "Exiting execution\n"); \
abort(); \
} \
} while(0)
......@@ -53,6 +54,7 @@ do { \
fprintf(stderr, #vALUE1": %"PRIdMAX"\n"#vALUE2": %"PRIdMAX"\n"#vALUE3": %"PRIdMAX"\n" \
#vALUE4": %"PRIdMAX"\n", \
(intmax_t)vALUE1, (intmax_t)vALUE2, (intmax_t)vALUE3, (intmax_t)vALUE4); \
fprintf(stderr, "Exiting execution\n"); \
exit(EXIT_FAILURE); \
} \
} while(0)
......@@ -63,8 +65,9 @@ do { \
#define DevAssert(cOND) \
do { \
if (!(cOND)) { \
fprintf(stderr, "%s:%d:%s Assertion `"#cOND"` failed.\n", \
fprintf(stderr, "%s:%d:%s Assertion `"#cOND"` failed\n", \
__FILE__, __LINE__, __FUNCTION__); \
fprintf(stderr, "Exiting execution\n"); \
abort(); \
} \
} while(0)
......@@ -73,6 +76,7 @@ do { \
do { \
fprintf(stderr, "%s:%d:%s Execution interrupted: `"#mESSAGE"`.\n", \
__FILE__, __LINE__, __FUNCTION__); \
fprintf(stderr, "Exiting execution\n"); \
abort(); \
} while(0)
......
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