#include "misc.h"
#include "options.h"
#include "process.h"
+#include "simgrid_features.h"
#include "statistics.h"
#include "synchro.h"
#include "timer.h"
double simulated_time = -1.0;
timestamp elapsed_time(timestamp::wallclock_time);
timestamp simulation_time(timestamp::cpu_time);
- MSG_error_t res;
+ msg_error_t res;
elapsed_time.start();
simulation_time.start();
}
// Initialize some MSG internal data.
- MSG_global_init(&argc, argv);
+ MSG_init(&argc, argv);
install_signal_handler();
// Parse global parameters
"Compiled on " << version::date << "\n\n";
if (!parse_res || opt::help_requested)
opt::usage();
- MSG_clean();
+ 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(),