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

This commit is contained in:
Alexandre Julliard 2008-07-03 12:58:57 +02:00
parent 94e217891c
commit 336a7dc182
1 changed files with 15 additions and 0 deletions

View File

@ -64,6 +64,19 @@ typedef void* I_RPC_HANDLE;
#include <rpcasync.h> #include <rpcasync.h>
#endif #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 */ /* ignore exception handling for now */
#define RpcTryExcept if (1) { #define RpcTryExcept if (1) {
#define RpcExcept(expr) } else { #define RpcExcept(expr) } else {
@ -74,4 +87,6 @@ typedef void* I_RPC_HANDLE;
#define RpcExceptionCode() 0 #define RpcExceptionCode() 0
/* #define RpcAbnormalTermination() abort() */ /* #define RpcAbnormalTermination() abort() */
#endif /* USE_COMPILER_EXCEPTIONS */
#endif /*__WINE_RPC_H */ #endif /*__WINE_RPC_H */