SimGrid  3.13
Versatile Simulation of Distributed Systems
asserts.h File Reference
#include "xbt/misc.h"
#include "xbt/log.h"
#include "xbt/ex.h"

Macros

#define xbt_assert(...)
 The condition which failed will be displayed. More...
 
#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)