X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9f6cbb176d4301cae36a945dfa57e6b6a9cbafef..1f606358fff6ef994cd58570e7c77ee6259d6a4e:/include/xbt/cunit.h diff --git a/include/xbt/cunit.h b/include/xbt/cunit.h index 219a42a5b3..9233bd6263 100644 --- a/include/xbt/cunit.h +++ b/include/xbt/cunit.h @@ -118,10 +118,8 @@ XBT_PUBLIC(void) _xbt_test_log(const char *file, int line, const char *fmt, ...) #define xbt_test_assert(...) _XBT_IF_ONE_ARG(_xbt_test_assert_ARG1, \ _xbt_test_assert_ARGN, \ __VA_ARGS__)(__VA_ARGS__) -#define _xbt_test_assert_ARG1(cond) _xbt_test_assert_CHECK(cond, \ - "%s", #cond) -#define _xbt_test_assert_ARGN(cond, ...) _xbt_test_assert_CHECK(cond, \ - __VA_ARGS__) +#define _xbt_test_assert_ARG1(cond) _xbt_test_assert_CHECK(cond, "%s", #cond) +#define _xbt_test_assert_ARGN(cond, ...) _xbt_test_assert_CHECK(cond, __VA_ARGS__) #define _xbt_test_assert_CHECK(cond, ...) \ do { if (!(cond)) xbt_test_fail(__VA_ARGS__); } while (0) /** @brief Report some details to help debugging when the test fails (shown only on failure)