X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ab9a2d2c7dca2b08750d70ef5769fc2c14350ab6..3ec51ec00350d47f090b2661ae07509dc6e1c74f:/src/mc/mc_replay.h diff --git a/src/mc/mc_replay.h b/src/mc/mc_replay.h index c824d44a6a..273c92c68b 100644 --- a/src/mc/mc_replay.h +++ b/src/mc/mc_replay.h @@ -6,7 +6,8 @@ #ifndef SIMGRID_MC_REPLAY_H #define SIMGRID_MC_REPLAY_H -#include +#include "xbt/base.h" +#include SG_BEGIN_DECL() @@ -14,11 +15,11 @@ SG_BEGIN_DECL() * * This is using the format generated by traceToString(). */ -XBT_PUBLIC_DATA(char*) MC_record_path; +XBT_PUBLIC_DATA(std::string) MC_record_path; /** Whether the replay mode is enabled */ static inline int MC_record_replay_is_active() { - return MC_record_path != 0; + return not MC_record_path.empty(); } SG_END_DECL()