#include "simgrid_config.h"
-SG_BEGIN_DECL()
-
#include <string.h>
#include <stdlib.h>
#include <stdarg.h> /* va_list */
+SG_BEGIN_DECL()
+
/* They live in asserts.h, but need to be declared before this module.
double declaration to cut dependency cycle */
/**
* @brief Kill the program with an error message
* \param ... a format string and its arguments
*
- * Things are so messed up that the only thing to do now, is to stop the
- * program.
+ * Things are so messed up that the only thing to do now, is to stop the program.
*
- * The message is handled by a CRITICAL logging request, and may consist of a
- * format string with arguments.
+ * The message is handled by a CRITICAL logging request, and may consist of a format string with arguments.
*/
#define xbt_die(...) \
do { \
* @{
*/
-#if defined(_MSC_VER) && !defined(strdup)
-# define strdup _strdup /* POSIX name is not ANSI complient blabla */
-#endif
-
/** @brief Like strdup, but xbt_die() on error */
static XBT_ALWAYS_INLINE char *xbt_strdup(const char *s) {
char *res = NULL;
return res;
}
-XBT_PUBLIC(void) xbt_backtrace_display_current(void);
+XBT_PUBLIC(void) xbt_backtrace_display_current();
/** @brief Like malloc, but xbt_die() on error
@hideinitializer */