summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_operation/amh_rh_ss.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_operation/amh_rh_ss.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/amh_rh_ss.cpp40
1 files changed, 15 insertions, 25 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/amh_rh_ss.cpp b/TAO/TAO_IDL/be/be_visitor_operation/amh_rh_ss.cpp
index 63ebeb95fa8..1a858a5f1b6 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/amh_rh_ss.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/amh_rh_ss.cpp
@@ -66,7 +66,7 @@ be_visitor_amh_rh_operation_ss::visit_operation (be_operation *node)
buf = 0;
// Step 1 : Generate return type: always void
- *os << be_nl << be_nl << "// TAO_IDL - Generated from " << be_nl
+ *os << be_nl << be_nl << "// TAO_IDL - Generated from " << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
*os << "void" << be_nl
@@ -158,44 +158,34 @@ be_visitor_amh_rh_operation_ss::visit_operation (be_operation *node)
operation_name[idx] = '\0';
*os << be_nl << "{" << be_idt_nl
- << (be_global->use_raw_throw () ? "try" : "ACE_TRY") << be_nl
+ << "ACE_TRY" << be_nl
<< "{" << be_idt_nl
<< "holder->raise_" << operation_name.c_str ()
- << " ("
- << (be_global->use_raw_throw ()
- ? ""
- : "ACE_ENV_SINGLE_ARG_PARAMETER")
- << ");" << ace_try_check << be_uidt_nl
+ << " (ACE_ENV_SINGLE_ARG_PARAMETER);" << be_nl
+ << "ACE_TRY_CHECK;" << be_uidt_nl
<< "}" << be_nl
- << (be_global->use_raw_throw ()
- ? "catch ( ::CORBA::Exception& ex)"
- : "ACE_CATCH ( ::CORBA::Exception, ex)")
+ << "ACE_CATCH ( ::CORBA::Exception, ex)" << be_nl
+ << "{" << be_nl
+ << " this->_tao_rh_send_exception (ex ACE_ENV_ARG_PARAMETER);"
<< be_nl
- << "{" << be_idt_nl
- << "this->_tao_rh_send_exception (ex"
- << (be_global->use_raw_throw () ? "" : " ACE_ENV_ARG_PARAMETER")
- << ");" << TAO_ACE_CHECK () << be_uidt_nl
- << "}" << ace_endtry << be_uidt_nl
+ << " ACE_CHECK;" << be_nl
+ << "}" << be_nl
+ << "ACE_ENDTRY;" << be_uidt_nl
<< "}";
}
else
{
// Step 3: Generate actual code for the method
*os << be_nl << "{" << be_idt_nl
- << "this->_tao_rh_init_reply ("
- << (be_global->use_raw_throw ()
- ? ""
- : "ACE_ENV_SINGLE_ARG_PARAMETER")
- << ");" << TAO_ACE_CHECK () << be_nl << be_nl;
+ << "this->_tao_rh_init_reply (ACE_ENV_SINGLE_ARG_PARAMETER);"
+ << be_nl
+ << "ACE_CHECK;" << be_nl << be_nl;
this->marshal_params (node);
*os << be_nl
- << "this->_tao_rh_send_reply ("
- << (be_global->use_raw_throw ()
- ? ""
- : "ACE_ENV_SINGLE_ARG_PARAMETER")
- << ");" << be_uidt_nl
+ << "this->_tao_rh_send_reply (ACE_ENV_SINGLE_ARG_PARAMETER);"
+ << be_uidt_nl
<< "}";
}