GLBasic forum

Main forum => GLBasic - en => Topic started by: bigtunacan on 2014-Sep-20

Title: GLBasic Precompiler V.10.053 syntax error
Post by: bigtunacan on 2014-Sep-20
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
Title: Re: GLBasic Precompiler V.10.053 syntax error
Post by: erico on 2014-Sep-20
Here a wild shot  :x... could it be the IIF name of the function?
Title: Re: GLBasic Precompiler V.10.053 syntax error
Post by: spacefractal on 2014-Sep-20
IIF is now a glbasic command, so it's can't been used as a function name. That why IIF have been marked.
Title: Re: GLBasic Precompiler V.10.053 syntax error
Post by: bigtunacan on 2014-Sep-20
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 (http://www.glbasic.com/forum/index.php?topic=7562.msg62632#msg62632)
Title: Re: GLBasic Precompiler V.10.053 syntax error
Post by: spacefractal on 2014-Sep-20
howover there have been a few quicks on this command, which im thinks it got fixed recently.
Title: Re: GLBasic Precompiler V.10.053 syntax error
Post by: MrTAToad on 2014-Sep-20
Yes, I believe its been fully fixed now.