Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Declare log category where it is actually used.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 4 Apr 2019 08:29:30 +0000 (10:29 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 4 Apr 2019 09:53:33 +0000 (11:53 +0200)
src/simix/libsmx.cpp
src/simix/popping_bodies.cpp
src/simix/simcalls.py

index d80c375..b44eb2d 100644 (file)
@@ -21,8 +21,6 @@
 #include "src/mc/mc_replay.hpp"
 #include "src/plugins/vm/VirtualMachineImpl.hpp"
 
-XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(simix);
-
 #include "popping_bodies.cpp"
 
 /**
index b86e34a..8888f2a 100644 (file)
 #include "xbt/ex.h"
 #include <functional>
 #include <simgrid/simix.hpp>
+#include <xbt/log.h>
 /** @cond */ // Please Doxygen, don't look at this
 
+XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(simix);
+
 template<class R, class... T>
 inline static R simcall(e_smx_simcall_t call, T const&... t)
 {
index a650164..ae5f79a 100755 (executable)
@@ -370,9 +370,12 @@ if __name__ == '__main__':
     fd.write('#include "xbt/ex.h"\n')
     fd.write('#include <functional>\n')
     fd.write('#include <simgrid/simix.hpp>\n')
+    fd.write('#include <xbt/log.h>\n')
 
     fd.write("/** @cond */ // Please Doxygen, don't look at this\n")
     fd.write('''
+XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(simix);
+
 template<class R, class... T>
 inline static R simcall(e_smx_simcall_t call, T const&... t)
 {