Book a Demo

Author Topic: How to C++ reserve engineer complex macros?  (Read 2101 times)

larsfl

  • Guest
How to C++ reserve engineer complex macros?
« 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;

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8090
  • Karma: +118/-20
    • View Profile
Re: How to C++ reserve engineer complex macros?
« Reply #1 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.