Skip to content

do not allow floating point literals in preprocessor checks #612

@firewave

Description

@firewave
#if A == 1.0
int i;
#endif

This is handled properly but preprocessor checks only support integral expressions. It is also rejected by all major compilers.

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