2 different compiler errors with the same code

Post bugreports for the Linux version here
#NULL
Addict
Addict
Posts: 1440
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

2 different compiler errors with the same code

Post by #NULL »

With the code from the first post in this german forum thread:
Makro mit CompilerIf als Code

- open IDE, paste code, run, get error:

Code: Select all

Zeile 29: 'CompilerIf' without 'CompilerEndIf'.
- then change the 0 to 1, run (no error), then undo back to 0 and run again, getting error:

Code: Select all

Zeile 23: 'CompilerEndIf' without 'CompilerIf'.
PB 5.71 x64 Linux; someone confirmed it on Windows as well.
I'm not referring to the misused nesting of macros and compilerIfs, but only to the fact of getting 2 different errors with the same code. I don't know if that issue matters much, but maybe it exposes a possible problem in the compiler's (or the IDE's) caching/precompiling.
User avatar
Naheulf
User
User
Posts: 27
Joined: Sat Oct 18, 2014 8:37 am

Re: 2 different compiler errors with the same code

Post by Naheulf »

Tip:

- add a plus char "+" line 7 (at the end of "DebugIf" macro content), run, get error:

Code: Select all

Line 21: Syntax error.
- then remove the "+", run, get the first error again :

Code: Select all

Zeile 29: 'CompilerIf' without 'CompilerEndIf'.
Please correct me if my English is bad.
Post Reply