From 08dfb121bd0c352cd3da28cd8cedd9b0e8fc4fd9 Mon Sep 17 00:00:00 2001 From: gokhale Date: Fri, 1 May 1998 21:02:49 +0000 Subject: *** empty log message *** --- TAO/TAO_IDL/be/be_visitor_exception.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'TAO/TAO_IDL/be/be_visitor_exception.cpp') 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); } -- cgit v1.2.1