Merge pull request #2220 from DOCGroup/revert-2217-jwi-inetwraning
[ACE_TAO.git] / TAO / TAO_IDL / be / be_visitor_exception / exception_ci.cpp
blob6cd46fd03e1a8b93117f70a4612d0ef9707f4cfe
2 //=============================================================================
3 /**
4 * @file exception_ci.cpp
6 * Visitor generating code for Exception in the inline file.
8 * @author Aniruddha Gokhale
9 */
10 //=============================================================================
12 #include "exception.h"
14 be_visitor_exception_ci::be_visitor_exception_ci (be_visitor_context *ctx)
15 : be_visitor_exception (ctx)
19 be_visitor_exception_ci::~be_visitor_exception_ci ()
23 // visit the Exception node and its scope
24 int be_visitor_exception_ci::visit_exception (be_exception *node)
26 if (node->cli_inline_gen () || node->imported ())
28 return 0;
31 // Generate inline code required of any anonymous types of members.
32 if (this->visit_scope (node) == -1)
34 ACE_ERROR_RETURN ((LM_ERROR,
35 "(%N:%l) be_visitor_exception::"
36 "visit_exception -"
37 "code for inline failed\n"),
38 -1);
41 node->cli_inline_gen (true);
42 return 0;