Drop compatibility with older versions.
#include <algorithm>
-#include <msg/msg.h>
+#include <simgrid/msg.h>
#include <xbt/log.h>
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(comm);
#define COMMUNICATOR_H
#include <vector>
-#include <msg/msg.h>
+#include <simgrid/msg.h>
#include "hostdata.h"
#include "messages.h"
#include "msg_thread.h"
#include <numeric>
#include <sstream>
#include <vector>
-#include <msg/msg.h>
+#include <simgrid/msg.h>
#include <xbt/dynar.h>
#include <xbt/log.h>
#include <string>
#include <vector>
-#include <msg/msg.h>
+#include <simgrid/msg.h>
#include "simgrid_features.h"
// Helper class that associates instances of itself with each host.
#include <iostream>
#include <stdexcept>
#include <unistd.h>
-#include <msg/msg.h>
+#include <simgrid/msg.h>
#include <xbt/log.h>
// Creates log categories
"Compiled on " << version::date << "\n\n";
if (!parse_res || opt::help_requested)
opt::usage();
- res = MSG_clean();
exit(parse_res ? EXIT_NO_FAILURE : EXIT_FAILURE_ARGS);
}
XBT_INFO("%s v%s (%s)", opt::program_name.c_str(), version::num.c_str(),
// Clean the MSG simulation.
hostdata::destroy();
- res = MSG_clean();
- if (res != MSG_OK) {
- XBT_ERROR("MSG_clean() failed with status %#x", res);
- exit_status |= EXIT_FAILURE_CLEAN;
- }
// Report final simulation status.
if (simulated_time >= 0.0) {
#include <queue>
#include <string>
-#include <msg/msg.h>
+#include <simgrid/msg.h>
#include "simgrid_features.h"
#include "synchro.h"
#include "sync_queue.h"
/* Defines XBT_XCLOG(...) which behave like XBT_CLOG(...), except that the
* given category is not passed through _XBT_LOGV before use.
*/
-#define XBT_XCLOG(c, p, ...) XBT_CLOG_((*(c)), p, __VA_ARGS__)
+#define XBT_XCLOG(c, p, ...) XBT_CLOG((*(c)), p, __VA_ARGS__)
#endif // !MISC_H
#define MSG_THREAD_H
#include <string>
-#include <msg/msg.h>
+#include <simgrid/msg.h>
#include "simgrid_features.h"
#include "synchro.h"
#include <limits>
-#include <msg/msg.h>
+#include <simgrid/msg.h>
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(proc); // needed to compile neighbor.h
# define MAP_TEMPLATE std::map
#endif
#include <vector>
-#include <msg/msg.h>
+#include <simgrid/msg.h>
#include <xbt/log.h>
#include "communicator.h"
#include "misc.h"
#include <simgrid_config.h>
-#if !defined(SIMGRID_VERSION) || SIMGRID_VERSION < 30700UL // == SG < 3.7 == //
-# error "Unsupported SimGrid version. Need version >= 3.7"
-#endif // ================================================================== //
-
-#if SIMGRID_VERSION < 30800UL // ============================== SG < 3.8 === //
-# define MSG_init(argc, argv) MSG_global_init(argc, argv)
-# define msg_error_t MSG_error_t
-# define msg_host_t m_host_t
-# define msg_process_t m_process_t
-# define msg_task_t m_task_t
-#else // =================================================================== //
-# define MSG_clean() MSG_OK
-#endif // ================================================================== //
+#if !defined(SIMGRID_VERSION) || SIMGRID_VERSION < 31200UL // == SG < 3.12 == //
+# error "Unsupported SimGrid version. Need version >= 3.12"
+#endif // =================================================================== //
#endif // !SIMGRID_FEATURES_H