Skip to content

[MSVC] Different macro expansion behavior. #14

Closed
@gmh5225

Description

@gmh5225
#define FPrint() printf(__FUNCTION__##": ");

int
main()
{
    FPrint();
    return 0;
}
1>main.cpp(21,5): error : pasting formed '__FUNCTION__": "', an invalid preprocessing token [-Winvalid-token-paste]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions