ccpp
ccpp copied to clipboard
Parentheses are not yet implemented
(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)