Skip to content

Parentheses are not yet implemented #3

Description

@Phlarx

(Using the Openplanet 1.21.0 build for TMTurbo)

The line

#if (TURBO && MANIA32) || (MP41 && MANIA64)

produces the errors

[    ScriptEngine] [23:04:52]  Unexpected operator '(' in condition on line 26
[    ScriptEngine] [23:04:52]  Unexpected operator ')' in condition on line 26
[    ScriptEngine] [23:04:52]  Unexpected OPERATOR in condition on line 26
[    ScriptEngine] [23:04:52]  Unexpected operator '(' in condition on line 26
[    ScriptEngine] [23:04:52]  Unexpected operator ')' in condition on line 26
[    ScriptEngine] [23:04:52]  Unexpected NEWLINE in condition on line 26

Searching the ccpp code reveals that ( and ) are indeed considered operator characters,
but they are marked as TODO within bool ccpp::processor::test_condition()

(in this specific case, the condition works the same with the parentheses omitted, so there is a workaround)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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