cutil/danerror.h

Go to the documentation of this file.
00001 
00019 #ifndef   DANERROR_H
00020 #define   DANERROR_H
00021 
00022 /* =================
00023           Include Files and Type Defines
00024  ==================== */
00025 #include <setjmp.h>
00026 
00027 #define SetErrorTrap(Proc)  setjmp(PushErrorTrap(Proc))
00028 #define NOERROR       0
00029 #define DO_NOTHING      0
00030 
00031 
00036 typedef int TRAPERROR;
00037 typedef void (*VOID_PROC) ();
00038 
00039 /* =================
00040           Public Function Prototypes
00041  ==================== */
00042 void ReleaseErrorTrap(); 
00043 
00044 void DoError(int Error, const char *Message); 
00045 
00046 jmp_buf &PushErrorTrap(VOID_PROC Procedure); 
00047 #endif

Generated on Wed Feb 28 19:49:10 2007 for Tesseract by  doxygen 1.5.1