src/core/abort.h
changeset 3937 04f9377661b8
parent 3781 0eea20a7b592
child 6370 0a0b6bf5fdfd
--- a/src/core/abort.h	Tue Nov 18 16:23:31 2008 -0800
+++ b/src/core/abort.h	Wed Nov 19 15:54:12 2008 -0800
@@ -21,6 +21,16 @@
 
 #include "fatal-error.h"
 
+#define NS_ABORT_MSG(msg)                                       \
+  do {								\
+    std::cerr << "file=" << __FILE__ <<                         \
+      ", line=" << __LINE__ << ", abort, msg=\"" <<             \
+      msg << "\"" << std::endl;                                 \
+    int *a = 0;                                                 \
+    *a = 0;							\
+  } while (false)
+
+
 #define NS_ABORT_IF(cond)					\
   do {								\
     if (cond)							\