diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2005-08-19 12:27:51 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2005-08-19 12:27:51 +0000 |
commit | a2c5163eb3c4fab782f87af195a95b830f9280d8 (patch) | |
tree | 26368ecdf78f437fbe236cac8e58f66a4bf6bc26 /ace/CORBA_macros.h | |
parent | 3b24847b3329df2652b5d70aa0d178f56a958ab5 (diff) | |
download | ATCD-a2c5163eb3c4fab782f87af195a95b830f9280d8.tar.gz |
ChangeLogTag: Fri Aug 19 12:24:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ace/CORBA_macros.h')
-rw-r--r-- | ace/CORBA_macros.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ace/CORBA_macros.h b/ace/CORBA_macros.h index c50c7d9d0d2..2fa1274a13a 100644 --- a/ace/CORBA_macros.h +++ b/ace/CORBA_macros.h @@ -146,8 +146,17 @@ throw EXCEPTION // Throwing an exception when the function requires a return value. -# define ACE_THROW_RETURN(EXCEPTION,RETV) \ +# if defined (__HP_aCC) +# define ACE_THROW_RETURN(EXCEPTION, RETV) \ + do \ + { \ + throw EXCEPTION; \ + return RETV; \ + } while (0) +# else +# define ACE_THROW_RETURN(EXCEPTION,RETV) \ throw EXCEPTION +# endif // For compilers with native exceptions, we can simply use try to try. ;-) // do {} while (0) is required to avoid compilation warnings. |