Skip to content

inner macro not expanded after hash hash #400

@danmar

Description

@danmar

Example code:

#define FOO(a) CAT(DO, STUFF)(1,2)
#define DOSTUFF(a, b)  CAT(3, 4)
#define CAT(a, b) a##b

FOO(1)

simplecpp output:

 UTIL_CAT  (  3  , 4  )

gcc -E output:

34

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions