GLBasic Precompiler V.10.053 syntax error

Previous topic - Next topic

bigtunacan

I needed to go back and make a couple of updates to one of my games that I haven't worked on in quite awhile.  It was compiling and working fine before, but last time I touched this project was back on V10, now I'm getting the following syntax error with V12.312

Code (glbasic) Select
GPC - GLBasic Precompiler V.10.053 SN:20da3ee5 - 3D, NET
"..\Shared\jolib.gbas"(633) error : GPC0001 syntax error


The following function is where the syntax error appears to be occurring.
Any idea what has changed to cause this problem?

Code (glbasic) Select
FUNCTION IIF: condition, if_true, if_false
IF condition
RETURN if_true
ELSE
RETURN if_false
ENDIF
ENDFUNCTION

erico

Here a wild shot  :x... could it be the IIF name of the function?

spacefractal

IIF is now a glbasic command, so it's can't been used as a function name. That why IIF have been marked.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

bigtunacan

Lol, that's too funny. I recommended it as a core GLBasic function 2 years ago and Gernot had said he would put it on the list!

http://www.glbasic.com/forum/index.php?topic=7562.msg62632#msg62632

spacefractal

howover there have been a few quicks on this command, which im thinks it got fixed recently.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrTAToad

Yes, I believe its been fully fixed now.