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
Define XBT_PUBLIC_DATA without parameter too.
[simgrid.git]
/
src
/
mc
/
Session.cpp
diff --git
a/src/mc/Session.cpp
b/src/mc/Session.cpp
index
b88f98d
..
a01cf12
100644
(file)
--- a/
src/mc/Session.cpp
+++ b/
src/mc/Session.cpp
@@
-23,6
+23,7
@@
#include "src/smpi/include/private.hpp"
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_Session, mc, "Model-checker session");
#include "src/smpi/include/private.hpp"
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_Session, mc, "Model-checker session");
+extern std::string _sg_mc_dot_output_file;
namespace simgrid {
namespace mc {
namespace simgrid {
namespace mc {
@@
-122,7
+123,7
@@
void Session::logState()
{
mc_model_checker->getChecker()->logState();
{
mc_model_checker->getChecker()->logState();
- if (
(_sg_mc_dot_output_file != nullptr) && (_sg_mc_dot_output_file[0] != '\0'
)) {
+ if (
not _sg_mc_dot_output_file.empty(
)) {
fprintf(dot_output, "}\n");
fclose(dot_output);
}
fprintf(dot_output, "}\n");
fclose(dot_output);
}