Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill duplicate definitions, and try to ensure that MC-ready code still works without...
[simgrid.git] / include / simgrid / modelchecker.h
index b0d7a37..f07d42e 100644 (file)
 #define SIMGRID_MODELCHECKER_H
 
 #ifdef HAVE_MC
 #define SIMGRID_MODELCHECKER_H
 
 #ifdef HAVE_MC
+
 extern int _surf_do_model_check;
 #define MC_IS_ENABLED _surf_do_model_check
 extern int _surf_do_model_check;
 #define MC_IS_ENABLED _surf_do_model_check
-#else
-#define MC_IS_ENABLED 0
-#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();
 
 
 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();
 
+#else
+
+#define MC_IS_ENABLED 0
+#define MC_assert(a) xbt_assert(a)
+#define MC_assert_stateful(a) xbt_assert(a)
+
+#endif
+
+
+
 #endif /* SIMGRID_MODELCHECKER_H */
 #endif /* SIMGRID_MODELCHECKER_H */