Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Sort include lists according to clang-format.
[simgrid.git] / src / mc / mc_replay.h
1 /* Copyright (c) 2008-2017. 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
11 SG_BEGIN_DECL()
12
13 /** Replay path (if any) in string representation
14  *
15  *  This is using the format generated by traceToString().
16  */
17 XBT_PUBLIC_DATA(char*) MC_record_path;
18
19 /** Whether the replay mode is enabled */
20 static inline int MC_record_replay_is_active() {
21   return MC_record_path != 0;
22 }
23
24 SG_END_DECL()
25
26 #endif