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)  | 
leonardo.pereirasan...@onsemi.com<mailto:leonardo.pereirasan...@onsemi.com>


_______________________________________________
Doxygen-users mailing list
Doxygen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/doxygen-users

Reply via email to