1 ----------------------------------------------------------------------------
3 Fatal Error Exception Library (FEEL) documentation
5 ----------------------------------------------------------------------------
10 A project-independent error handling interface, which acts as a base for
11 development environment and handles all exceptions and abortion/termination
12 calls generated by other projects.
17 globalerrorhandler (error.h)
18 ----------------------------
20 All errorhandling routines are gathered here as static members. Also
21 holds some backup routines which are installed when the program exits.
22 Win32 variant has also a backup copy of the window handle.
28 Installs the class. Normally this is called automatically
29 when the program starts, in main() or WinMain().
33 Deinstalls the error handler. Normally called automatically
34 when the program closes, in exit().
36 Abort(const char* Format, ...)
38 Generates an error message using Format and other arguments
39 as printf() does, prints the message with a method most suitable
40 for the current OS and terminates the program. This is a rather
41 common function to be called, so a macro named ABORT is provided
42 to ensure convenient using.
46 ABORT("Fatal Error: Detected a %d-eyed Enner Beast!", 3);
48 Result: Program closes and a messagebox with text "Fatal Error:
49 Detected a 3-eyed Enner Beast!" is displayed.
51 SetWindow(HWND* NewhWnd)
53 Win32 only. Replaces the current window handle with NewhWnd.
58 int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR
59 lpCmdLine, int nCmdShow)
61 Win32 only. The starting procedure of the program. Not to be
62 called from anywhere else.
64 ----------------------------------------------------------------------------