X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b8df87e176f27b25534f27d7e240defa32ca35bc..a57327d86b9fb16acacc71a3359817acd2a2816b:/src/mc/mc_exit.hpp diff --git a/src/mc/mc_exit.hpp b/src/mc/mc_exit.hpp index 3ec6ccff75..c725e83913 100644 --- a/src/mc/mc_exit.hpp +++ b/src/mc/mc_exit.hpp @@ -7,15 +7,15 @@ #define SIMGRID_MC_EXIT_HPP #include "xbt/base.h" -#define SIMGRID_MC_EXIT_SUCCESS 0 -#define SIMGRID_MC_EXIT_SAFETY 1 -#define SIMGRID_MC_EXIT_LIVENESS 2 -#define SIMGRID_MC_EXIT_DEADLOCK 3 -#define SIMGRID_MC_EXIT_NON_TERMINATION 4 -#define SIMGRID_MC_EXIT_NON_DETERMINISM 5 -#define SIMGRID_MC_EXIT_PROGRAM_CRASH 6 +constexpr int SIMGRID_MC_EXIT_SUCCESS = 0; +constexpr int SIMGRID_MC_EXIT_SAFETY = 1; +constexpr int SIMGRID_MC_EXIT_LIVENESS = 2; +constexpr int SIMGRID_MC_EXIT_DEADLOCK = 3; +constexpr int SIMGRID_MC_EXIT_NON_TERMINATION = 4; +constexpr int SIMGRID_MC_EXIT_NON_DETERMINISM = 5; +constexpr int SIMGRID_MC_EXIT_PROGRAM_CRASH = 6; -#define SIMGRID_MC_EXIT_ERROR 63 +constexpr int SIMGRID_MC_EXIT_ERROR = 63; namespace simgrid { namespace mc {