X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f1068773bda2a9c50385808a643a04e4a1fc2c7a..007a4b5e35220b15976128a925d2773fe86b2502:/include/xbt/error.h diff --git a/include/xbt/error.h b/include/xbt/error.h index 029d26348e..46ada38cbf 100644 --- a/include/xbt/error.h +++ b/include/xbt/error.h @@ -15,6 +15,9 @@ #include /* offsetof() */ #include /* size_t */ #include + +#include /* FIXME: Get rid of it */ + #ifdef HAVE_EXECINFO_H #include /* to print the backtrace */ #endif @@ -68,7 +71,7 @@ typedef enum { __FILE__,__LINE__, \ gras_error_name(errcode)); \ fflush(stdout); \ - abort(); \ + gras_abort(); \ } } while(0) #define TRYEXPECT(action,expected_error) do { \ @@ -77,7 +80,7 @@ typedef enum { fprintf(stderr,"Got error %s (instead of %s expected)\n", \ gras_error_name(errcode), \ gras_error_name(expected_error)); \ - abort(); \ + gras_abort(); \ } \ } while(0) @@ -143,8 +146,6 @@ typedef enum { #define RAISE_IMPOSSIBLE RAISE0(unknown_error,"The Impossible did happen") #define RAISE_UNIMPLEMENTED RAISE1(unknown_error,"Function %s unimplemented",__FUNCTION__) -#define gras_abort abort - #ifdef NDEBUG #define gras_assert(cond) #define gras_assert0(cond,msg)