1 /* Copyright (c) 2008-2018. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
6 #ifndef SIMGRID_MC_REPLAY_H
7 #define SIMGRID_MC_REPLAY_H
12 #include "src/mc/mc_config.hpp"
14 /** Replay path (if any) in string representation
16 * This is using the format generated by traceToString().
18 #define MC_record_path (_sg_mc_record_path.get())
20 /** Whether the replay mode is enabled */
21 static inline int MC_record_replay_is_active()
23 return not MC_record_path.empty();