Using PREDEFINED with concatenation macros
Leonardo Pereira Santos <[email protected]> Thu, 1 Aug 2019 18:15:49 +0000
| Newsgroups | gmane.text.doxygen.general |
|---|---|
| Message-ID | <19D444D2299FEE43A99CCB03048F85200BBFE722@usaz01ws0035.ad.onsemi.com> |
Hello All! I'm trying to use a PREDEFINED statement to create the equivalent of the following macro: #define concat_something(a,b) a##b So, having this in a source file: #define concat_something(a,b) a##b int concat_something(foo, bar)=0; And EXPAND_AS_DEFINED = concat_something Does indeed generates a global variable: Variables int foobar =0 I can also see this if I run Doxygen's preprocessor. I need an equivalent PREDEFINED because I can't have this macro on macro as it'll break the compilation. So I tried this: PREDEFINED = concat_something(a,b)=a##b But I don't get the result I expected: Functions int concat_something (foo, bar)=0 I don't understand why the concat_something macro and the PREDEFINED statement don't do the same thing. Thanks!! ____________________________________________________________ Leonardo Pereira Santos | ON Semiconductor Design Engineer 200-611 Kumpf Dr | Waterloo, Ontario, Canada, N2N 1A8 519-884-9696 x2269 (O) | [email protected]<mailto:[email protected]> _______________________________________________ Doxygen-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/doxygen-users