GLBasic forum

Main forum => Bug Reports => Topic started by: bigsofty on 2010-Apr-12

Title: Preprocessor
Post by: bigsofty on 2010-Apr-12
Code (glbasic) Select
?IFDEF IPHONE // Placing a remark here always activates the next line!!
PRINT "Blah!", isAt.x%-4, isAt.y%-4
?ENDIF


Remarks on preprocessor commands, seem to mess up their logic.
Title: Re: Preprocessor
Post by: bigsofty on 2010-Apr-20
Another small preprocessor problem...

When you define a preprocessor command is only has scope within the GLBasic module that its defined in. So my GLBasic program has 8 modules, I have to make 8 ?DEFINES, one each for each module to get my ?IFDEF commands working across all my code.  :blink:
Title: Re: Preprocessor
Post by: Kitty Hello on 2010-Apr-20
I think that's all covered now.
The ?DEFINE from the main program file stay thoughout the whole program now.
Title: Re: Preprocessor
Post by: MrTAToad on 2010-Apr-20
Great!  That saves having to duplicate various TYPES
Title: Re: Preprocessor
Post by: bigsofty on 2010-Apr-20
Thanks Gernot.  :)