Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
stringify (a lot)
[simgrid.git] / src / mc / mc_replay.h
index fa295af..1b4c190 100644 (file)
@@ -14,11 +14,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()