Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright headers.
[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 "xbt/base.h"
10 #include <string>
11
12 /** Replay path (if any) in string representation
13  *
14  *  This is using the format generated by traceToString().
15  */
16 XBT_PUBLIC_DATA std::string MC_record_path;
17
18 /** Whether the replay mode is enabled */
19 static inline int MC_record_replay_is_active()
20 {
21   return not MC_record_path.empty();
22 }
23
24 #endif