Skip to content

Nested macros containing ## do not get expanded properly. #66

@tortoisedoc

Description

@tortoisedoc
#define GETMYID(a) ((a))+1
#define FIGHT_FOO(c, ...) foo(c, ##__VA_ARGS__)
FIGHT_FOO(1, GETMYID(a));

The gcc -E says:

foo(1, ((a))+1);

And simplecpp says:

foo ( 1 , GETMYID ( a ) ) ;

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions