rpc.h: Use the correct exception definitions when USE_COMPILER_EXCEPTIONS is set.
This commit is contained in:
parent
94e217891c
commit
336a7dc182
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue