BASIC

Author Topic: GLBasic Precompiler V.10.053 syntax error  (Read 1958 times)

Offline bigtunacan

  • Mr. Polyvector
  • ***
  • Posts: 195
    • View Profile
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

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4240
    • View Profile
    • Portfolio
Re: GLBasic Precompiler V.10.053 syntax error
« Reply #1 on: 2014-Sep-20 »
Here a wild shot  :x... could it be the IIF name of the function?

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3690
    • View Profile
    • Space Fractal
Re: GLBasic Precompiler V.10.053 syntax error
« Reply #2 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.
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline bigtunacan

  • Mr. Polyvector
  • ***
  • Posts: 195
    • View Profile
Re: GLBasic Precompiler V.10.053 syntax error
« Reply #3 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

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3690
    • View Profile
    • Space Fractal
Re: GLBasic Precompiler V.10.053 syntax error
« Reply #4 on: 2014-Sep-20 »
howover there have been a few quicks on this command, which im thinks it got fixed recently.
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

MrTAToad

  • Guest
Re: GLBasic Precompiler V.10.053 syntax error
« Reply #5 on: 2014-Sep-20 »
Yes, I believe its been fully fixed now.