Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: larsfl on April 18, 2006, 11:25:09 am

Title: How to C++ reserve engineer complex macros?
Post by: larsfl on April 18, 2006, 11:25:09 am
Hi,

I cannot figure out how to import code like this in EA :'(
Please give me a hint.

Macro definition
# define  Handle(ClassName)  Handle_##ClassName

// Use of macro
Handle(TDocStd_Document) myStarsDoc;

Handle(V3d_Viewer) myViewer;
Handle(AIS_InteractiveContext) myAISContext;
Title: Re: How to C++ reserve engineer complex macros?
Post by: Eve on April 19, 2006, 05:42:09 pm
EA can't handle this sort macro currently, it can only specify to skip the macro.  The only suggestion I can make is to get a preprocessor to expand that macro for you.