2 #ifndef __ATLEXCEPT_H__
3 #define __ATLEXCEPT_H__
6 //FIXME: Enable when RaiseException is marked as NORETURN
8 inline void AtlThrowImp(HRESULT hr
)
14 #ifdef _ATL_NO_EXCEPTIONS
19 hr
== E_OUTOFMEMORY
? STATUS_NO_MEMORY
: EXCEPTION_ILLEGAL_INSTRUCTION
,
20 EXCEPTION_NONCONTINUABLE
, 0, NULL
25 // FIXME: This is horribly wrong, we should implement CException!
35 #define AtlThrow(x) AtlThrowImp(x)