diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2001-12-08 21:59:30 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2001-12-08 21:59:30 +0000 |
commit | 63165b00e2d667e39e15cf084128d94a563d484e (patch) | |
tree | 6939cf1ed0a80ce8a3224d33f3d23c0e1b9a517f /ace/CORBA_macros.h | |
parent | 6579bccb3a3f22f882ef908ad5f7e1a65b00b133 (diff) | |
download | ATCD-63165b00e2d667e39e15cf084128d94a563d484e.tar.gz |
Merged corba-env-clean branch.
Diffstat (limited to 'ace/CORBA_macros.h')
-rw-r--r-- | ace/CORBA_macros.h | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/ace/CORBA_macros.h b/ace/CORBA_macros.h index cee5b5bbdaf..494a0311384 100644 --- a/ace/CORBA_macros.h +++ b/ace/CORBA_macros.h @@ -67,7 +67,7 @@ #if defined (ACE_CORBA_HAS_EXCEPTIONS) // ----------------------------------------------------------------- -# define ACE_ADOPT_CORBA_ENV(ENV) ACE_UNUSED_ARG(ENV) +# define ACE_ADOPT_CORBA_ENV(ENV) // No need to check. Native exceptions handle the control // flow automatically when an exception occurs. @@ -77,34 +77,24 @@ // ACE_THROW_INT should not be used by the user. # define ACE_THROW_INT(EXCEPTION) \ - do { \ - ACE_UNUSED_ARG(ACE_TRY_ENV); \ - throw EXCEPTION; \ - } while (0) + throw EXCEPTION // Throwing an exception is easy. These two macros should _NOT_ be // used within try blocks. # define ACE_THROW(EXCEPTION) \ - do { \ - ACE_UNUSED_ARG(ACE_TRY_ENV); \ - throw EXCEPTION; \ - } while (0) + throw EXCEPTION // Throwing an exception when the function reqires a return value. # if defined (WIN32) || defined (__HP_aCC) # define ACE_THROW_RETURN(EXCEPTION, RETV) \ do \ { \ - ACE_UNUSED_ARG(ACE_TRY_ENV); \ throw EXCEPTION; \ return RETV; \ } while (0) # else /* WIN32 */ # define ACE_THROW_RETURN(EXCEPTION,RETV) \ - do { \ - ACE_UNUSED_ARG(ACE_TRY_ENV); \ - throw EXCEPTION; \ - } while (0) + throw EXCEPTION # endif /* WIN32 */ // For compilers with native exceptions, we can simply use |