1 #ifndef SIMGRID_FEATURES_H
2 #define SIMGRID_FEATURES_H
4 #include <simgrid_config.h>
6 #if !defined(SIMGRID_VERSION) // ==================== SimGrid <= 3.5 === //
7 # error "Unsupported SimGrid version. Need version > 3.5"
8 #endif // ============================================================== //
10 #if SIMGRID_VERSION < MAKE_SIMGRID_VERSION(3, 8, 0) // ==== SG < 3.8 === //
11 # define MSG_init(argc, argv) MSG_global_init(argc, argv)
12 # define msg_error_t MSG_error_t
13 # define msg_host_t m_host_t
14 # define msg_process_t m_process_t
15 # define msg_task_t m_task_t
16 #else // =============================================================== //
17 # define MSG_clean() MSG_OK
18 #endif // ============================================================== //
20 #endif // !SIMGRID_FEATURES_H