Commit 336a7dc1 authored by Alexandre Julliard's avatar Alexandre Julliard

rpc.h: Use the correct exception definitions when USE_COMPILER_EXCEPTIONS is set.

parent 94e21789
......@@ -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 */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment