The requested page is not available for the requested platform. You are viewing the content for Default platform.

Inline Macro (C++)

Replaces the current macro with its definition. If the current macro contains other macros in its definition, all macros are replaced.

Availability

Available from the context menu or via shortcuts:

  • when the caret is on a macro.

Example

#define FUNC1(x) (x+100)
#define MACRO1(y) FUNC1(y)+y

int TestMethod(int b)
{
    return MACRO1(b);
}

Result:

#define FUNC1(x) (x+100)
#define MACRO1(y) FUNC1(y)+y

int TestMethod(int b)
{
    return (b+100)+b;
}

Screenshot

rsInlineMacro