}
/* Replay (this part is enabled even if MC it disabled) */
-static simgrid::config::Flag<std::string> _sg_mc_record_path{
- "model-check/replay", "Model-check path to replay (as reported by SimGrid when a violation is reported)", "",
- [](const std::string& value) { MC_record_path = value; }};
+simgrid::config::Flag<std::string> _sg_mc_record_path{
+ "model-check/replay", "Model-check path to replay (as reported by SimGrid when a violation is reported)", ""};
simgrid::config::Flag<bool> _sg_mc_timeout{
"model-check/timeout", "Whether to enable timeouts for wait requests", false,
/********************************** Configuration of MC **************************************/
extern "C" XBT_PUBLIC int _sg_do_model_check;
+extern XBT_PUBLIC simgrid::config::Flag<std::string> _sg_mc_record_path;
extern XBT_PRIVATE simgrid::config::Flag<bool> _sg_do_model_check_record;
extern XBT_PRIVATE simgrid::config::Flag<int> _sg_mc_checkpoint;
extern XBT_PUBLIC simgrid::config::Flag<bool> _sg_mc_sparse_checkpoint;
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_record, mc,
" Logging specific to MC record/replay facility");
-std::string MC_record_path;
-
namespace simgrid {
namespace mc {
#include "xbt/base.h"
#include <string>
+#include "src/mc/mc_config.hpp"
+
/** Replay path (if any) in string representation
*
* This is using the format generated by traceToString().
*/
-XBT_PUBLIC_DATA std::string MC_record_path;
+#define MC_record_path (_sg_mc_record_path.get())
/** Whether the replay mode is enabled */
static inline int MC_record_replay_is_active()