src/core/abort.h
changeset 4654 2eaebe77d66b
parent 3781 0eea20a7b592
     1.1 --- a/src/core/abort.h	Fri Oct 24 10:29:06 2008 +0200
     1.2 +++ b/src/core/abort.h	Sat Jul 04 08:15:48 2009 +0200
     1.3 @@ -21,6 +21,16 @@
     1.4  
     1.5  #include "fatal-error.h"
     1.6  
     1.7 +#define NS_ABORT_MSG(msg)                                       \
     1.8 +  do {								\
     1.9 +    std::cerr << "file=" << __FILE__ <<                         \
    1.10 +      ", line=" << __LINE__ << ", abort, msg=\"" <<             \
    1.11 +      msg << "\"" << std::endl;                                 \
    1.12 +    int *a = 0;                                                 \
    1.13 +    *a = 0;							\
    1.14 +  } while (false)
    1.15 +
    1.16 +
    1.17  #define NS_ABORT_IF(cond)					\
    1.18    do {								\
    1.19      if (cond)							\