35 const Int_t kUnset = -1;
36 const Int_t kPrint = 0;
37 const Int_t kInfo = 1000;
38 const Int_t kWarning = 2000;
39 const Int_t kError = 3000;
40 const Int_t kBreak = 4000;
41 const Int_t kSysError = 5000;
42 const Int_t kFatal = 6000;
44 R__EXTERN TVirtualMutex *gErrorMutex;
46 typedef void (*ErrorHandlerFunc_t)(
int level, Bool_t abort,
const char *location,
49 extern "C" void ErrorHandler(
int level,
const char *location,
const char *fmt,
52 extern void DefaultErrorHandler(
int level, Bool_t abort,
const char *location,
55 extern ErrorHandlerFunc_t SetErrorHandler(ErrorHandlerFunc_t newhandler);
56 extern ErrorHandlerFunc_t GetErrorHandler();
58 extern void Info(
const char *location,
const char *msgfmt, ...)
59 #if defined(__GNUC__) && !defined(__CINT__)
60 __attribute__((format(printf, 2, 3)))
63 extern void Warning(
const char *location,
const char *msgfmt, ...)
64 #if defined(__GNUC__) && !defined(__CINT__)
65 __attribute__((format(printf, 2, 3)))
68 extern void Error(
const char *location,
const char *msgfmt, ...)
69 #if defined(__GNUC__) && !defined(__CINT__)
70 __attribute__((format(printf, 2, 3)))
73 extern void Break(
const char *location,
const char *msgfmt, ...)
74 #if defined(__GNUC__) && !defined(__CINT__)
75 __attribute__((format(printf, 2, 3)))
78 extern void SysError(
const char *location,
const char *msgfmt, ...)
79 #if defined(__GNUC__) && !defined(__CINT__)
80 __attribute__((format(printf, 2, 3)))
83 extern void Fatal(
const char *location,
const char *msgfmt, ...)
84 #if defined(__GNUC__) && !defined(__CINT__)
85 __attribute__((format(printf, 2, 3)))
89 extern void AbstractMethod(
const char *method);
90 extern void MayNotUse(
const char *method);
91 extern void Obsolete(
const char *
function,
const char *asOfVers,
const char *removedFromVers);
93 R__EXTERN
const char *kAssertMsg;
94 R__EXTERN
const char *kCheckMsg;
96 #define R__ASSERT(e) \
98 if (!(e)) ::Fatal("", kAssertMsg, _QUOTE_(e), __LINE__, __FILE__); \
100 #define R__CHECK(e) \
102 if (!(e)) ::Warning("", kCheckMsg, _QUOTE_(e), __LINE__, __FILE__); \
105 R__EXTERN Int_t gErrorIgnoreLevel;
106 R__EXTERN Int_t gErrorAbortLevel;
107 R__EXTERN Bool_t gPrintViaErrorHandler;