#include <msg/msg.h>
#include <xbt/log.h>
+// Don't look at this dirty hack...
+// Delete it when THROWF comes in SG/svn.
+#ifndef THROWF
+#define THROWF(...) THROW1(__VA_ARGS__)
+#endif
+
// Creates log categories
XBT_LOG_NEW_CATEGORY(simu, "Root of simulation messages");
XBT_LOG_NEW_SUBCATEGORY(main, simu, "Messages from global infrastructure");
delete proc;
}
catch (const std::invalid_argument& e) {
- THROW1(arg_error, 0, "%s", e.what());
+ THROWF(arg_error, 0, "%s", e.what());
}
catch (const std::exception& e) {
- THROW1(0, 0, "%s", e.what());
+ THROWF(0, 0, "%s", e.what());
}
return result;
}
delete proc_mutex;
if (res != MSG_OK)
- THROW1(0, 0, "MSG_main() failed with status %#x", res);
+ THROWF(0, 0, "MSG_main() failed with status %#x", res);
exit_status = EXIT_NO_FAILURE; // =====
}