-#define _xbt_assert_ARG1(cond) \
- _xbt_assert_ARGN(cond, "Assertion %s failed", #cond)
-#define _xbt_assert_ARGN(cond, ...) \
- do { if (!(cond)) THROWF(0, 0, __VA_ARGS__); } while (0)
+#define _xbt_assert_ARG1(cond) _xbt_assert_ARGN((cond), "Assertion %s failed", #cond)
+#define _xbt_assert_ARGN(cond, ...) \
+ do { \
+ if (!(cond)) { \
+ XBT_CCRITICAL(root, __VA_ARGS__); \
+ if (!xbt_log_no_loc) \
+ xbt_backtrace_display_current(); \
+ abort(); \
+ } \
+ } while (0)