src/inc/errabort.h 1.13

1.13 2010/01/12 18:16:27 markd
added horrible hack so it's possible to distinguish between warning and errors in the warn handler
Index: src/inc/errabort.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/inc/errabort.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -b -B -U 4 -r1.12 -r1.13
--- src/inc/errabort.h	7 Jun 2009 07:13:37 -0000	1.12
+++ src/inc/errabort.h	12 Jan 2010 18:16:27 -0000	1.13
@@ -16,8 +16,13 @@
  * granted for all use - public, private or commercial. */
 
 #ifndef ERRABORT_H
 #define ERRABORT_H
+
+extern boolean errAbortInProgress;  /* Flag to indicate that an error abort is in progress.
+                                     * Needed so that a warn handler can tell if it's really
+                                     * being called because of a warning or an error. */
+
 void errAbort(char *format, ...)
 /* Abort function, with optional (printf formatted) error message. */
 #if defined(__GNUC__)
 __attribute__((format(printf, 1, 2)))