Skip to content

Can't test/undef macros named for keywords #173

Open
@Y-Less

Description

@Y-Less
#define for 42 // Sytactically fine, and actually use by foreach (not as "42" though).
#undef for // error 020: invalid symbol name ""
#if defined for // error 020: invalid symbol name ""
#endif

It seems #define parses the string explicitly. #undef and defined just look for a symbol from the lexer, which those aren't.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions