6 #ifndef _INC_cExceptionSystem_H
7 #define _INC_cExceptionSystem_H
15 #if defined(_CPPUNWIND)
33 typedef unsigned int SYSCODE_t;
35 typedef int SYSCODE_t;
39 SYSCODE_t m_nSystemErrorCode;
44 cExceptionSystem(SYSCODE_t uNTStatus,
struct _EXCEPTION_POINTERS* pData =
nullptr);
46 cExceptionSystem(SYSCODE_t iSignal);
50 virtual BOOL GetErrorMessage(
GChar_t* lpszError, UINT nMaxError, UINT* pnHelpContext) override;
52 static
void GRAYCALL InitForCurrentThread();
54 static CATTR_NORETURN void _cdecl CatchException(SYSCODE_t uNTStatus,
struct _EXCEPTION_POINTERS* pData);
56 static int _cdecl FilterException(SYSCODE_t uNTStatus,
struct _EXCEPTION_POINTERS* pData);
58 static void __cdecl SignalHandler(SYSCODE_t iSignal);
#define CATTR_NORETURN
Definition: GrayCore.h:93
#define GRAYCORE_LINK
Definition: GrayCore.h:47
#define GRAYCALL
declare calling convention for static functions so everyone knows the arg passing scheme....
Definition: GrayCore.h:36
#define THROW_DEF
Definition: HResult.h:25
#define UNITTEST2_PREDEF(x)
Definition: cUnitTestDecl.h:19
#define UNITTEST_FRIEND(n)
Define this in the class body to be unit tested. Allow the unit test to access private/protected stuf...
Definition: cUnitTestDecl.h:17
< The main namespace for all Core functions.
Definition: GrayCore.cpp:14
class __DECL_IMPORT cException
Definition: cExceptionBase.h:47
char GChar_t
My version of TCHAR, _TCHAR.
Definition: StrConst.h:26