diff options
-rw-r--r-- | TAO/tao/try_macros.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/TAO/tao/try_macros.h b/TAO/tao/try_macros.h index 45f0e465891..4e79b1ed7f3 100644 --- a/TAO/tao/try_macros.h +++ b/TAO/tao/try_macros.h @@ -45,7 +45,9 @@ ACE_UNUSED_ARG (VAR); #define TAO_THROW(EXCEPTION) throw EXCEPTION #define TAO_THROW_ENV(EXCEPTION, ENV) throw EXCEPTION #define TAO_THROW_RETURN(EXCEPTION, RETURN) throw EXCEPTION -#define TAO_THROW_ENV_RETURN(EXCEPTION, ENV, RETURN) throw EXCEPTION +#define TAO_THROW_ENV_RETURN(EXCEPTION, ENV, RETURN) do { \ + throw EXCEPTION; \ + return RETURN; } while (0) #define TAO_RETHROW throw #define TAO_RETHROW_RETURN(RETURN) throw |