Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix dist
[simgrid.git] / src / mc / mc_replay.h
1 /* Copyright (c) 2008-2015. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #ifndef SIMGRID_MC_REPLAY_H
8 #define SIMGRID_MC_REPLAY_H
9
10 #include <xbt/base.h>
11
12 SG_BEGIN_DECL()
13
14 /** Replay path (if any) in string representation
15  *
16  *  This is using the format generated by traceToString().
17  */
18 XBT_PUBLIC_DATA(char*) MC_record_path;
19
20 /** Whether the replay mode is enabled */
21 static inline int MC_record_replay_is_active() {
22   return MC_record_path != 0;
23 }
24
25 SG_END_DECL()
26
27 #endif