diff options
Diffstat (limited to 'TAO/tests/Native_Exceptions/test_i.cpp')
-rw-r--r-- | TAO/tests/Native_Exceptions/test_i.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/TAO/tests/Native_Exceptions/test_i.cpp b/TAO/tests/Native_Exceptions/test_i.cpp new file mode 100644 index 00000000000..7712b291889 --- /dev/null +++ b/TAO/tests/Native_Exceptions/test_i.cpp @@ -0,0 +1,35 @@ +// $Id$ + +#include "test_i.h" + +#if !defined(__ACE_INLINE__) +#include "test_i.inl" +#endif /* __ACE_INLINE__ */ + +ACE_RCSID(Native_Exceptions, test_i, "$Id$") + +CORBA::Long +Simple_Server_i::test_method (CORBA::Long x) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + return x; +} + +CORBA::Long +Simple_Server_i::test_raise (CORBA::Long x) + ACE_THROW_SPEC ((Simple_Server::Failure)) +{ + ACE_UNUSED_ARG (x); + throw Simple_Server::Failure (); + +# if defined (WIN32) || defined (__HP_aCC) + return x; +#endif /*WIN32 & HP */ +} + +void +Simple_Server_i::shutdown (void) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + this->orb_->shutdown (); +} |