src/hg/inc/hCommon.h 1.26

1.26 2009/07/10 01:40:37 markd
moved stackDump stuff to hCommon; added function for user errAbort
Index: src/hg/inc/hCommon.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/inc/hCommon.h,v
retrieving revision 1.25
retrieving revision 1.26
diff -b -B -U 4 -r1.25 -r1.26
--- src/hg/inc/hCommon.h	4 Jul 2009 07:13:51 -0000	1.25
+++ src/hg/inc/hCommon.h	10 Jul 2009 01:40:37 -0000	1.26
@@ -91,5 +91,30 @@
 #define gisaidAaSeqList "gisaidTable.gisaidAaSeqList"
 
 boolean validateGisaidUser();
 
+boolean hDumpStackEnabled(void);
+/* is browser.dumpStack enabled?  */
+
+void hDumpStackDisallow(void);
+/* prevent any dumping of the stack */
+
+void hDumpStackPushAbortHandler(void);
+/* push the stack dump abort handler on the stack if it's enabled.  This should be pushed
+ * after the warn handle that will do the actual reporting */
+
+void hDumpStackPopAbortHandler(void);
+/* pop the stack dump abort handler from the stack if it's enabled */
+
+void hVaUserAbort(char *format, va_list args);
+/* errAbort when a `user' error is detected.  This is an error that comes
+ * from user input. This disables the logging stack dumps. */
+
+void hUserAbort(char *format, ...)
+/* errAbort when a `user' error is detected.  This is an error that comes
+ * from user input. This disables the logging stack dumps. */
+#if defined(__GNUC__)
+__attribute__((format(printf, 1, 2)))
+#endif
+;
+
 #endif /* HCOMMON_H */