Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.
This repository was archived by the owner on Feb 6, 2025. It is now read-only.

Parser crashes when function-like define does not end with semicolon #148

@unjello

Description

@unjello

Parser cannot handle a case with function-like preprocessor being called without a semicolon, even if it's not technically required if proper preprocessor were run, because the semicolon is inside the definition:

#define X(x) x = 1.;

void main() {
    float f;
    X(f)
}

or it's not even required, because the definition is a for-loop:

#define X for(float i=0.; i<1.; i+= 1.) {}
void main() {
    X
}

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