summaryrefslogtreecommitdiff
path: root/TAO/tao
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-07 01:59:23 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-07 01:59:23 +0000
commit3481e7478b336896b0303d157a04fde887b1b4d7 (patch)
treedebdbc93281d0f0dede4e766364d5c886ee0d23f /TAO/tao
parent899f22aed52c4b6fb234c479b8aef6703c9fbce1 (diff)
downloadATCD-3481e7478b336896b0303d157a04fde887b1b4d7.tar.gz
ChangeLogTag:Tue Oct 6 20:28:10 1998 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'TAO/tao')
-rw-r--r--TAO/tao/try_macros.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/TAO/tao/try_macros.h b/TAO/tao/try_macros.h
index 6b4685ec8cc..81f484dd1c7 100644
--- a/TAO/tao/try_macros.h
+++ b/TAO/tao/try_macros.h
@@ -27,6 +27,7 @@
// The first "do" scope is for the env.
// The second "do" scope is for the TAO_CHECK_ENV continues.
#define TAO_TRY \
+do {
CORBA_Environment TAO_TRY_ENV; \
try {
#define TAO_CATCH(TYPE,VAR) \
@@ -35,7 +36,7 @@ ACE_UNUSED_ARG (VAR);
#define TAO_CATCHANY \
} catch (...) {
-#define TAO_ENDTRY }
+#define TAO_ENDTRY }} while (0)
// No need to do checking, exception handling does it for us.
#define TAO_CHECK_ENV