summaryrefslogtreecommitdiff
path: root/TAO/tao/try_macros.h
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-01-08 01:11:53 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-01-08 01:11:53 +0000
commit05796d72b1d05598262abf951c545ff76c080a46 (patch)
tree292076b0f952cd79413861c5218ca63914dfd6c8 /TAO/tao/try_macros.h
parent924bd8cf2baeb04ed8b15af3190babf44bdf8205 (diff)
downloadATCD-05796d72b1d05598262abf951c545ff76c080a46.tar.gz
Simply define TAO_CATCHANY as TAO_CATCH (CORBA_Exception, ex).
Diffstat (limited to 'TAO/tao/try_macros.h')
-rw-r--r--TAO/tao/try_macros.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/TAO/tao/try_macros.h b/TAO/tao/try_macros.h
index 87875df00eb..17dcca674c3 100644
--- a/TAO/tao/try_macros.h
+++ b/TAO/tao/try_macros.h
@@ -55,8 +55,6 @@
#define TAO_CATCHALL } catch (...) {
#endif /* TAO_DONT_CATCH_DOT_DOT_DOT */
-#define TAO_CATCHANY TAO_CATCH(CORBA_Exception, ex)
-
#define TAO_ENDTRY }} while (0)
// Use this macro if there's a return statement following TAO_ENDTRY
@@ -190,11 +188,6 @@ if (TAO_TRY_ENV.exception () != 0 && \
TYPE &VAR = *TYPE::_narrow (TAO_TRY_ENV.exception ()); \
ACE_UNUSED_ARG (VAR);
-#define TAO_CATCHANY \
-} while (0); \
-do { \
-if (TAO_TRY_ENV.exception () != 0)
-
#define TAO_CATCHALL \
} while (0); \
do { \
@@ -210,7 +203,7 @@ continue;
// and the statement is the last statement in the function.
#define TAO_ENDTRY_RETURN(X) TAO_ENDTRY; return X
-// If continue is called, control will skip to the next TAO_CATCHANY
+// If continue is called, control will skip to the next TAO_CATCH
// statement.
#define TAO_CHECK_ENV \
{\
@@ -283,6 +276,8 @@ return
#endif /* TAO_HAS_EXCEPTIONS */
+#define TAO_CATCHANY TAO_CATCH(CORBA_Exception, ex)
+
// This macros can be used even outside the TAO_TRY blocks, in fact
// some are designed for that purpose.