2 /* xbt/asserts.h -- assertion mecanism */
4 /* Copyright (c) 2004,2005 Martin Quinson. All rights reserved. */
6 /* This program is free software; you can redistribute it and/or modify it
7 * under the terms of the license (GNU LGPL) which comes with this package. */
9 #include <stdlib.h> /* abort */
11 #include "xbt/asserts.h"
13 XBT_LOG_EXTERNAL_CATEGORY(xbt);
14 XBT_LOG_DEFAULT_CATEGORY(xbt);
17 * @brief Kill the program with an error message
20 * Things are so messed up that the only thing to do now, is to stop the program.
22 * The message is handled by a CRITICAL logging request
24 * If you want to pass arguments to the format, you can always write xbt_assert1(0,"fmt",args)
26 void xbt_die (const char *msg) {
31 /** @brief Kill the program in silence */
32 void xbt_abort(void) {