1

I have code that looks more or less like this:

// foo.h

/**
 * Lalala blablabla
 */
#define Foo_X Foo::doSomething(1)

/**
 * Fofofoo
 */
class Foo {
public:
    static doSomething(int x);
};

This will make the documentation of the macro appear in the documentation of the file. However, if possible I would like to have it included in the class documentation of Foo. Is this possible?

I found this related question, but if possible I dont want to link the macro documentation, but include the documentation of the macro itself in the class doc.

PS: I know that for this simplified example it doesnt make much sense to use a macro. In the real code I do need the macro and users typically wont ever call doSomething directly, but only through the macro.

463035818_is_not_an_ai
  • 109,796
  • 11
  • 89
  • 185

0 Answers0