diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-12-11 23:11:33 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-12-11 23:11:33 +0000 |
commit | a029fc996323673567cfafe8616585052c50450f (patch) | |
tree | 770777127b8595f9764e32dc8e5b6e288754d27d /TAO/tao/orbconf.h | |
parent | 0d2729bf109e1234b53586e2629031d38318867f (diff) | |
download | ATCD-a029fc996323673567cfafe8616585052c50450f.tar.gz |
ChangeLogTag:Tue Dec 11 15:06:00 2001 Carlos O'Ryan <coryan@uci.edu>
Diffstat (limited to 'TAO/tao/orbconf.h')
-rw-r--r-- | TAO/tao/orbconf.h | 39 |
1 files changed, 29 insertions, 10 deletions
diff --git a/TAO/tao/orbconf.h b/TAO/tao/orbconf.h index 57057530e14..8196dd8dba7 100644 --- a/TAO/tao/orbconf.h +++ b/TAO/tao/orbconf.h @@ -250,6 +250,9 @@ # define TAO_ENV_EMIT_CODE2(X,Y) #endif /* TAO_HAS_EXCEPTIONS && !TAO_ENV_BKWD_COMPAT */ +/// Helper macro +#define TAO_ENV_EMIT_DUMMY + /// Declare a CORBA::Environment argument as the last argument of a /// function /** @@ -261,11 +264,16 @@ * mechanism to write code that is portable to platforms with and * without native C++ exceptions. */ -#define TAO_ENV_ARG_DECL TAO_ENV_EMIT_CODE2(/**/,CORBA::Environment &ACE_TRY_ENV) +#define TAO_ENV_ARG_DECL \ + TAO_ENV_EMIT_CODE2(TAO_ENV_EMIT_DUMMY, \ + CORBA::Environment &ACE_TRY_ENV) /// Declare a CORBA::Environment argument with the default value /// obtained from the TAO orb. Similar to TAO_ENV_ARG_DECL -#define TAO_ENV_ARG_DECL_WITH_DEFAULTS TAO_ENV_EMIT_CODE2(/**/,CORBA::Environment &ACE_TRY_ENV = TAO_default_environment ()) +#define TAO_ENV_ARG_DECL_WITH_DEFAULTS \ + TAO_ENV_EMIT_CODE2(TAO_ENV_EMIT_DUMMY, \ + CORBA::Environment &ACE_TRY_ENV = \ + TAO_default_environment ()) /// Declare a CORBA::Environment argument that is not used by the /// function definition. @@ -273,28 +281,38 @@ * Similar to TAO_ENV_ARG_DECL, but the formal parameter name is * dropped to avoid warnings about unused parameters */ -#define TAO_ENV_ARG_DECL_NOT_USED TAO_ENV_EMIT_CODE2(/**/,CORBA::Environment &) +#define TAO_ENV_ARG_DECL_NOT_USED \ + TAO_ENV_EMIT_CODE2(TAO_ENV_EMIT_DUMMY, \ + CORBA::Environment &) /// Declare a CORBA::Environment argument for methods that do not take /// any other parameters -#define TAO_ENV_SINGLE_ARG_DECL TAO_ENV_EMIT_CODE(CORBA::Environment &ACE_TRY_ENV) +#define TAO_ENV_SINGLE_ARG_DECL \ + TAO_ENV_EMIT_CODE(CORBA::Environment &ACE_TRY_ENV) /// Declare a CORBA::Environment argument with a default value for /// methods that do not take any other parameters -#define TAO_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS TAO_ENV_EMIT_CODE(CORBA::Environment &ACE_TRY_ENV = TAO_default_environment ()) +#define TAO_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS \ + TAO_ENV_EMIT_CODE(CORBA::Environment &ACE_TRY_ENV = \ + TAO_default_environment ()) /// Declare a CORBA::Environment argument for for ethods -#define TAO_ENV_SINGLE_ARG_DECL_NOT_USED TAO_ENV_EMIT_CODE(CORBA::Environment &) +#define TAO_ENV_SINGLE_ARG_DECL_NOT_USED \ + TAO_ENV_EMIT_CODE(CORBA::Environment &) /// Use the CORBA::Environment argument is a nested call -#define TAO_ENV_ARG_PARAMETER TAO_ENV_EMIT_CODE2(/**/,ACE_TRY_ENV) +#define TAO_ENV_ARG_PARAMETER \ + TAO_ENV_EMIT_CODE2(TAO_ENV_EMIT_DUMMY, \ + ACE_TRY_ENV) /// Use the CORBA::Environment argument is a nested call, assuming the /// called function take only the ACE_TRY_ENV argument. -#define TAO_ENV_SINGLE_ARG_PARAMETER TAO_ENV_EMIT_CODE(ACE_TRY_ENV) +#define TAO_ENV_SINGLE_ARG_PARAMETER \ + TAO_ENV_EMIT_CODE(ACE_TRY_ENV) /// Eliminate unused argument warnings about ACE_TRY_ENV -#define TAO_ENV_ARG_NOT_USED TAO_ENV_EMIT_CODE(ACE_UNUSED_ARG(ACE_TRY_ENV)) +#define TAO_ENV_ARG_NOT_USED \ + TAO_ENV_EMIT_CODE(ACE_UNUSED_ARG(ACE_TRY_ENV)) /// Declare a CORBA::Environment variable. /** @@ -302,7 +320,8 @@ * it when compiled with native C++ exceptions, but use the argument * in all platforms */ -#define TAO_ENV_DECLARE_NEW_ENV TAO_ENV_EMIT_CODE(ACE_DECLARE_NEW_CORBA_ENV) +#define TAO_ENV_DECLARE_NEW_ENV \ + TAO_ENV_EMIT_CODE(ACE_DECLARE_NEW_CORBA_ENV) /** * Please do not use, obsolescent. Use TAO_ENV_DECLARE_NEW_ENV |