Those are the SimGrid version of the good ol' assert macro. More...
Defines | |
#define | xbt_assert(cond) |
The condition which failed will be displayed. | |
Functions | |
void | xbt_abort (void) _XBT_GNUC_NORETURN |
Kill the program in silence. | |
void | xbt_die (const char *msg) _XBT_GNUC_NORETURN |
Kill the program with an error message. |
Those are the SimGrid version of the good ol' assert macro.
You can pass them a format message and arguments, just as if it where a printf. It is converted to a CRITICALn logging request.
void xbt_die | ( | const char * | msg | ) |
Kill the program with an error message.
msg | Things are so messed up that the only thing to do now, is to stop the program. |
The message is handled by a CRITICAL logging request
If you want to pass arguments to the format, you can always write xbt_assert1(0,"fmt",args) or xbt_die(bprintf("fmt", arg))
msg | Things are so messed up that the only thing to do now, is to stop the program. |
The message is handled by a CRITICAL logging request
If you want to pass arguments to the format, you can always write xbt_assert1(0,"fmt",args)
Back to the main Simgrid Documentation page |
Generated for SimGridAPI by
![]() |