Module: wine Branch: master Commit: 336a7dc1827c168559adcbea881c75c0fd53412d URL: http://source.winehq.org/git/wine.git/?a=commit;h=336a7dc1827c168559adcbea88...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Jul 3 12:58:57 2008 +0200
rpc.h: Use the correct exception definitions when USE_COMPILER_EXCEPTIONS is set.
---
include/rpc.h | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/include/rpc.h b/include/rpc.h index c157c6d..6c92ecc 100644 --- a/include/rpc.h +++ b/include/rpc.h @@ -64,6 +64,19 @@ typedef void* I_RPC_HANDLE; #include <rpcasync.h> #endif
+#ifdef USE_COMPILER_EXCEPTIONS + +#define RpcTryExcept __try { +#define RpcExcept(expr) } __except (expr) { +#define RpcEndExcept } +#define RpcTryFinally __try { +#define RpcFinally } __finally { +#define RpcEndFinally } +#define RpcExceptionCode() GetExceptionCode() +#define RpcAbnormalTermination() AbnormalTermination() + +#else /* USE_COMPILER_EXCEPTIONS */ + /* ignore exception handling for now */ #define RpcTryExcept if (1) { #define RpcExcept(expr) } else { @@ -74,4 +87,6 @@ typedef void* I_RPC_HANDLE; #define RpcExceptionCode() 0 /* #define RpcAbnormalTermination() abort() */
+#endif /* USE_COMPILER_EXCEPTIONS */ + #endif /*__WINE_RPC_H */