Skip to content

Incorrect expansion of functional macros #590

@ludviggunne

Description

@ludviggunne

Header:

#define B A
#define A x(B)
#define C(s) s
#define D(s) C(s)

D(A)

gcc output:

x(A)

simplecpp output:

x ( x ( A ) )

I couldn't find an earlier commit where this isn't the output. I believe this issue is related to #549.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions