Skip to content
This repository was archived by the owner on Mar 17, 2022. It is now read-only.
This repository was archived by the owner on Mar 17, 2022. It is now read-only.

2ident macro #2

Description

@USSRcoder
//--- stdout
//identcall ident2call ident2("Hello, World!")
//identcall ident2call ident2call "Hello, World!" 
#define HELLO "Hello, World!"
#define identity(a) identcall a
#define ident2(a) ident2call a

identity(ident2(ident2))(HELLO)
identity(ident2call ident2)(HELLO) 

Unknown why, but ucpp wrong expand this macro:

 identcall ident2call  ident2call "Hello, World!"
 identcall ident2call  ident2call "Hello, World!"

with/out define INMACRO_FLAG;
testing under msvc 2019, w8. Maybe it non c99 macro, but gcc/cl produce correct results.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions