9 #ifndef _INC_cExceptionBase_H
10 #define _INC_cExceptionBase_H
11 #ifndef NO_PRAGMA_ONCE
26 #if ! defined(_CPPUNWIND)
37 #elif defined(_MFC_VER)
50 #if ! defined(_CPPUNWIND)
52 #define GRAY_TRY if (true) {
53 #define GRAY_TRY_CATCH(c,ex) } else if (false) {
54 #define GRAY_TRY_CATCHALL } else {
55 #define GRAY_TRY_END }
56 #elif defined(_MFC_VER)
58 #define GRAY_THROW throw new
60 #define GRAY_TRY_CATCH(c,ex) CATCH(c,ex)
61 #define GRAY_TRY_CATCHALL CATCH(CException,ex)
62 #define GRAY_TRY_END END_CATCH
63 #elif defined(_MSC_VER)
65 #define GRAY_THROW throw
66 #define GRAY_TRY _TRY_BEGIN
67 #define GRAY_TRY_CATCH(c,ex) _CATCH(c& ex)
68 #define GRAY_TRY_CATCHALL _CATCH_ALL
69 #define GRAY_TRY_END _CATCH_END
71 #define GRAY_THROW throw
72 #define GRAY_TRY try {
73 #define GRAY_TRY_CATCH(c,ex) } catch (c& ex) {
74 #define GRAY_TRY_CATCHALL } catch (...) {
75 #define GRAY_TRY_END }
#define GRAYCORE_LINK
Definition: GrayCore.h:47
#define THROW_DEF
Definition: HResult.h:25
Definition: cExceptionBase.h:28
virtual ~cExceptionBase()
Definition: cExceptionBase.h:32
virtual const char * what() const THROW_DEF=0
Definition: cException.h:83
< The main namespace for all Core functions.
Definition: GrayCore.cpp:14