diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-02-16 22:44:36 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-02-16 22:44:36 +0000 |
commit | b4d3ea62c5ff8767becd501cd53a48b94391bc19 (patch) | |
tree | 259736094a3c1092996bec63eb6566a97b25d686 /ace/CORBA_macros.h | |
parent | af146247d46d4bc0e0d4331504e58c0d8dc44d41 (diff) | |
download | ATCD-b4d3ea62c5ff8767becd501cd53a48b94391bc19.tar.gz |
Added ACE_PRINT_EXCEPTION.
Diffstat (limited to 'ace/CORBA_macros.h')
-rw-r--r-- | ace/CORBA_macros.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ace/CORBA_macros.h b/ace/CORBA_macros.h index f595a28b657..f9def86ea0d 100644 --- a/ace/CORBA_macros.h +++ b/ace/CORBA_macros.h @@ -300,4 +300,15 @@ #endif /* ! ACE_CORBA_HAS_EXCEPTIONS */ +// Print out a TAO exception. This is not CORBA compliant. +# define ACE_PRINT_TAO_EXCEPTION(EX,INFO) \ + EX.print_exception (INFO) + +// Print out a CORBA exception. There is not portable way to +// dump a CORBA exception. If you are using other ORB implementation, +// redefine the macro to get what you want. +# if !defined ACE_PRINT_EXCEPTION +# define ACE_PRINT_EXCEPTION(EX,INFO) ACE_PRINT_TAO_EXCEPTION(EX,INFO) +# endif /* ACE_PRINT_EXCEPTION */ + #endif /* ACE_CORBA_MACROS_H */ |