[Doxygen-users] EXPAND_AS_DEFINED and Poor Mans Inheritance
Brought to you by:
dimitri
From: Peter S. <pet...@hu...> - 2001-05-14 07:46:55
|
Hello all I one project, I'm forced to use C. I try to get some struct reuse and sort of object inheritance with the following contruct: //------ begin of example #define BASECLASS \ int aMember; /**< Members Doc */ \ /* END OF BASECLASS */ /** * This is the base class */ typedef struct BaseClass { BASECLASS } BaseClass; /** * This is a derived class */ typedef struct DerivedClass { BASECLASS int additionalMember; /**< also documented */ } DerivedClass; //------ end of example To get the documentation right, I'm using the MACRO_EXPANSION, EXPAND_ONLY_PREDEF and EXPAND_AS_DEFINED = BASECLASS macros. But that works only halfway: the 'aMember' appears in the documentation if HIDE_UNDOC_MEMBERS is not set, but without documentation. It seems that the doxygen comments inside my macro BASECLASS are swallowed during the preprocessing stage. I'd like to happen the macro expansion first and then the extraction of the comments... Is there a way to make this work? Regards, Peter -- _ _ Peter Steiner <pet...@hu...> / /_/ / Hug-Witschi AG <http://www.hugwi.ch/> / _ / Electronic Engineering /_/ /_/ _ _ Industriestrasse 12 / / / / / / CH-3178 Boesingen / /_/ /_/ / Tel +41 31 740 44 44 /_ _ _ _ _/ Fax +41 31 740 44 45 |