summaryrefslogtreecommitdiff
path: root/src/inc/ex.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/inc/ex.h')
-rw-r--r--src/inc/ex.h68
1 files changed, 0 insertions, 68 deletions
diff --git a/src/inc/ex.h b/src/inc/ex.h
index af1d0f558c..80b9aa0a07 100644
--- a/src/inc/ex.h
+++ b/src/inc/ex.h
@@ -18,70 +18,7 @@ void RetailAssertIfExpectedClean(); // Defined in src/utilcode/debug
#define EX_TRY_HOLDER
#endif // FEATURE_PAL
-#ifdef CLR_STANDALONE_BINDER
-
-#define INCONTRACT(x)
-
-#define EX_THROW(type, value) throw type(value)
-
-void DECLSPEC_NORETURN ThrowLastError();
-
-#define EX_TRY \
- try \
- { \
- EX_TRY_HOLDER \
-
-#define EX_CATCH_HRESULT(_hr) } catch (HRESULT hr) { _hr = hr; }
-#define EX_CATCH } catch(...)
-#define EX_END_CATCH(a)
-#define EX_RETHROW throw
-#define EX_SWALLOW_NONTERMINAL } catch(...) {}
-#define EX_END_CATCH_UNREACHABLE
-#define EX_CATCH_HRESULT_NO_ERRORINFO(_hr) \
- EX_CATCH \
- { \
- (_hr) = GET_EXCEPTION()->GetHR(); \
- _ASSERTE(FAILED(_hr)); \
- } \
- EX_END_CATCH(SwallowAllExceptions)
-
-void DECLSPEC_NORETURN ThrowHR(HRESULT hr);
-inline void DECLSPEC_NORETURN ThrowHR(HRESULT hr, int msgId)
-{
- throw hr;
-}
-void DECLSPEC_NORETURN ThrowHR(HRESULT hr, SString const &msg);
-
-#define GET_EXCEPTION() ((Exception*)NULL)
-
-void DECLSPEC_NORETURN ThrowWin32(DWORD err);
-
-inline void IfFailThrow(HRESULT hr)
-{
- WRAPPER_NO_CONTRACT;
-
- if (FAILED(hr))
- {
- ThrowHR(hr);
- }
-}
-
-/*
-inline HRESULT OutOfMemory()
-{
- LEAF_CONTRACT;
- return (E_OUTOFMEMORY);
-}
-*/
-#define COMPlusThrowNonLocalized(key, msg) throw msg
-
-// Set if fatal error (like stack overflow or out of memory) occurred in this process.
-extern HRESULT g_hrFatalError;
-
-#endif //CLR_STANDALONE_BINDER
-
#include "sstring.h"
-#ifndef CLR_STANDALONE_BINDER
#include "crtwrap.h"
#include "winwrap.h"
#include "corerror.h"
@@ -94,8 +31,6 @@ extern HRESULT g_hrFatalError;
#define _DEBUG_IMPL 1
#endif
-#endif //!CLR_STANDALONE_BINDER
-
//===========================================================================================
// These abstractions hide the difference between legacy desktop CLR's (that don't support
@@ -664,8 +599,6 @@ class OutOfMemoryException : public Exception
virtual BOOL IsPreallocatedException() { return bIsPreallocated; }
};
-#ifndef CLR_STANDALONE_BINDER
-
template <typename STATETYPE>
class CAutoTryCleanup
{
@@ -1583,5 +1516,4 @@ inline HRESULT IfTransientFailThrow(HRESULT hr)
// Set if fatal error (like stack overflow or out of memory) occurred in this process.
GVAL_DECL(HRESULT, g_hrFatalError);
-#endif // !CLR_STANDALONE_BINDER
#endif // _EX_H_