排球

EXCEPTIONS宏定义

2019-09-13 20:47:38来源:励志吧0次阅读

#define TRY { AFX_EXCEPTION_LINK _afxExceptionLink; try {

#define CATCH(class, e) } catch (class* e) \

{ ASSERT(e->IsKindOf(RUNTIME_CLASS(class))); \

_afxExceptionLink.m_pException = e;

#define AND_CATCH(class, e) } catch (class* e) \

{ ASSERT(e->IsKindOf(RUNTIME_CLASS(class))); \

_afxExceptionLink.m_pException = e;

#define END_CATCH } }

#define THROW(e) throw e

#define THROW_LAST() (AfxThrowLastCleanup(), throw)

// Advanced macros for smaller code

#define CATCH_ALL(e) } catch (CException* e) \

{ { ASSERT(e->IsKindOf(RUNTIME_CLASS(CException))); \

_afxExceptionLink.m_pException = e;

#define AND_CATCH_ALL(e) } catch (CException* e) \

{ { ASSERT(e->IsKindOf(RUNTIME_CLASS(CException))); \

_afxExceptionLink.m_pException = e;

#define END_CATCH_ALL } } }

#define END_TRY } catch (CException* e) \

{ ASSERT(e->IsKindOf(RUNTIME_CLASS(CException))); \

_afxExceptionLink.m_pException = e; } }

Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=1636938

小孩脾虚的原因
糖尿病胃轻瘫消化不好治疗措施
宝宝发烧吃什么
糖尿病胃轻瘫便秘能吃啥药
分享到: