On Tue, Jul 23, 2019 at 11:41 AM Leonardo Pereira Santos < leonardo.pereirasan...@onsemi.com> wrote:
> There’s an odd behaviour when expanding the macro. > > > If I use a PREDEFINED as suggested: > > PREDEFINED = chess_storage(x)=chess_storage_##x > > > > I get the documentation as > > > > int chess_storage_ > > *firmware_function* > <http://regular__c_8h.html#a10ebc6e9e9d0553d708d2daddb03c294> (unsigned > long int chess_storage_ param) > > > > But if I use this macro: > > > > *#define* chess_storage( x ) chess_storage_*##*x > > > > And > > > > EXPAND_AS_DEFINED = chess_storage > > > > I get the correct concatenation: > > > > int chess_storage_x0 > > *firmware_function* > <http://regular__c_8h.html#adbbb22277ff4bb26c338cf1bbb34b76a> (unsigned > long int chess_storage_a0 param) > > > > Any ideas as to why Doxygen is not concatenating? > It may be that # is used to start a comment in Doxygen config files. Maybe try escaping the # like:: PREDEFINED = chess_storage(x)=chess_storage_\#\#x
_______________________________________________ Doxygen-users mailing list Doxygen-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/doxygen-users