A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clang again
[simgrid.git]
/
src
/
mc
/
mc_replay.h
diff --git
a/src/mc/mc_replay.h
b/src/mc/mc_replay.h
index
934a30e
..
273c92c
100644
(file)
--- a/
src/mc/mc_replay.h
+++ b/
src/mc/mc_replay.h
@@
-1,7
+1,4
@@
-/* simgrid/modelchecker.h - Formal Verification made possible in SimGrid */
-
-/* Copyright (c) 2008-2014. The SimGrid Team.
- * All rights reserved. */
+/* Copyright (c) 2008-2017. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
@@
-9,19
+6,20
@@
#ifndef SIMGRID_MC_REPLAY_H
#define SIMGRID_MC_REPLAY_H
#ifndef SIMGRID_MC_REPLAY_H
#define SIMGRID_MC_REPLAY_H
-#include <xbt/misc.h>
+#include "xbt/base.h"
+#include <string>
SG_BEGIN_DECL()
/** Replay path (if any) in string representation
*
SG_BEGIN_DECL()
/** Replay path (if any) in string representation
*
- * This is
a path as generated by `MC_record_stack_to_string()`
.
+ * This is
using the format generated by traceToString()
.
*/
*/
-XBT_PUBLIC_DATA(
char*
) MC_record_path;
+XBT_PUBLIC_DATA(
std::string
) MC_record_path;
/** Whether the replay mode is enabled */
/** Whether the replay mode is enabled */
-static inline int MC_record_replay_is_active(
void
) {
- return
MC_record_path != 0
;
+static inline int MC_record_replay_is_active() {
+ return
not MC_record_path.empty()
;
}
SG_END_DECL()
}
SG_END_DECL()