Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
try to fix the build on centos
[simgrid.git] / src / mc / mc_replay.hpp
1 /* Copyright (c) 2008-2018. The SimGrid Team. All rights reserved.          */
2
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. */
5
6 #ifndef SIMGRID_MC_REPLAY_H
7 #define SIMGRID_MC_REPLAY_H
8
9 #include "src/mc/mc_config.hpp"
10
11 /** Replay path (if any) in string representation
12  *
13  *  This is using the format generated by traceToString().
14  */
15 #define MC_record_path (_sg_mc_record_path.get())
16
17 /** Whether the replay mode is enabled */
18 static inline int MC_record_replay_is_active()
19 {
20   return not MC_record_path.empty();
21 }
22
23 #endif