X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/362b4dbfe18e585af36789119acafa5d5350fa20..248ef080d26ba69c3ce967cf6593190f50ff8677:/include/simgrid/modelchecker.h diff --git a/include/simgrid/modelchecker.h b/include/simgrid/modelchecker.h index b0d7a37042..97e650dd37 100644 --- a/include/simgrid/modelchecker.h +++ b/include/simgrid/modelchecker.h @@ -12,16 +12,23 @@ #define SIMGRID_MODELCHECKER_H #ifdef HAVE_MC + extern int _surf_do_model_check; #define MC_IS_ENABLED _surf_do_model_check + +XBT_PUBLIC(void) MC_assert(int); +XBT_PUBLIC(void) MC_assert_stateful(int); +XBT_PUBLIC(int) MC_random(int min, int max); +XBT_PUBLIC(void) MC_diff(void); + #else + #define MC_IS_ENABLED 0 +#define MC_assert(a) xbt_assert(a) +#define MC_assert_stateful(a) xbt_assert(a) + #endif -XBT_PUBLIC(void) MC_assert(int); -XBT_PUBLIC(void) MC_assert_stateful(int); -XBT_PUBLIC(int) MC_random(int min, int max); -XBT_PUBLIC(void) MC_diff(); #endif /* SIMGRID_MODELCHECKER_H */