summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_exception.cpp
diff options
context:
space:
mode:
authorgokhale <gokhale@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-05-01 21:02:49 +0000
committergokhale <gokhale@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-05-01 21:02:49 +0000
commit08dfb121bd0c352cd3da28cd8cedd9b0e8fc4fd9 (patch)
tree03e21240ea032554fcaf8291aac0a0694861a4a4 /TAO/TAO_IDL/be/be_visitor_exception.cpp
parent18e92d82f008302103051556307e3f189d14c506 (diff)
downloadATCD-08dfb121bd0c352cd3da28cd8cedd9b0e8fc4fd9.tar.gz
*** empty log message ***
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_exception.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_exception.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_exception.cpp b/TAO/TAO_IDL/be/be_visitor_exception.cpp
index 4e635804a32..63bf273dca6 100644
--- a/TAO/TAO_IDL/be/be_visitor_exception.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_exception.cpp
@@ -488,6 +488,14 @@ int be_visitor_exception_cs::visit_exception (be_exception *node)
*os << "CORBA::TypeCode_ptr " << node->tc_name () << " = &_tc__tc_" <<
node->flatname () << ";\n\n";
+ // generate the _alloc method
+ os->indent ();
+ *os << "static CORBA::Exception *" << node->flatname ()
+ << "_alloc (void)" << be_nl;
+ *os << "{" << be_idt_nl;
+ *os << "return new " << node->name () << ";" << be_uidt_nl;
+ *os << "}\n\n";
+
node->cli_stub_gen (I_TRUE);
}