summaryrefslogtreecommitdiff
path: root/ace/CORBA_macros.h
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-02-17 22:48:12 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-02-17 22:48:12 +0000
commitca2a90209af6e96e96bb011e2e1fe42f93c115d6 (patch)
tree0a3ef30f7ce0b07ae26b523798f4a9471c37cb04 /ace/CORBA_macros.h
parent55bc454c47dd915b1c92d1a0f1cd260c1a536d4c (diff)
downloadATCD-ca2a90209af6e96e96bb011e2e1fe42f93c115d6.tar.gz
Added ACE_THROW_INT to be used in ACE_NEW_THROW_EX.
Diffstat (limited to 'ace/CORBA_macros.h')
-rw-r--r--ace/CORBA_macros.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ace/CORBA_macros.h b/ace/CORBA_macros.h
index ae0463d0777..3e0ca98f5f6 100644
--- a/ace/CORBA_macros.h
+++ b/ace/CORBA_macros.h
@@ -77,6 +77,9 @@
// Used then the function requires a return value.
# define ACE_CHECK_RETURN(RETV)
+// ACE_THROW_INT should not be used by the user.
+# define ACE_THROW_INT(EXCEPTION) throw EXCEPTION
+
// Throwing an exception is easy. These two macros should _NOT_ be
// used within try blocks.
# define ACE_THROW(EXCEPTION) throw EXCEPTION
@@ -162,6 +165,9 @@
if (ACE_TRY_ENV . exception () != 0) \
return RETV
+// ACE_THROW_INT should not be used by the user.
+# define ACE_THROW_INT(EXCEPTION) ACE_TRY_ENV.exception (EXCEPTION)
+
// Throwing exceptions will inevitably cause an return from the current
// function. These two macros should _NOT_ be used within try blocks.
// Use ACE_TRY_THROW or ACE_TRY_THROW_EX instead.