GLBasic forum

Main forum => Bug Reports => Topic started by: Kitty Hello on 2011-Sep-23

Title: preprocessor variables for platforms
Post by: Kitty Hello on 2011-Sep-23
Palm-Pixi platform has "?IFDEF PALMPIXI" defined.
It's a bit stupid, but I removed all special characters from the box where you select the platform and made that uppercase.
Sorry.

To ensure you got the right thing, please add:

?IFDEF WHATEVER
?WARNING Compiling for WHATEVER
?ENDIF

Title: Re: preprocessor variables for platforms
Post by: MrTAToad on 2011-Sep-23
What is it for the Caanoo
Title: Re: preprocessor variables for platforms
Post by: ampos on 2011-Sep-24
Quote from: MrTAToad on 2011-Sep-23
What is it for the Caanoo

BOAT

:nana:
Title: Re: preprocessor variables for platforms
Post by: Dabz on 2011-Sep-25
Quote
What is it for the Caanoo

Code (glbasic) Select

?IFDEF AHOY_THERE_ME_LAND_LOVERS
?WARNING Compiling for WHATEVER
?ENDIF


Sorry! :D

*Dabz gets his coat*

Dabz
Title: Re: preprocessor variables for platforms
Post by: MrTAToad on 2011-Sep-25
Quote from: ampos on 2011-Sep-24
Quote from: MrTAToad on 2011-Sep-23
What is it for the Caanoo

BOAT

:nana:
Witty!  :enc:
Title: Re: preprocessor variables for platforms
Post by: ampos on 2011-Sep-25
Quote from: MrTAToad on 2011-Sep-25
Quote from: ampos on 2011-Sep-24
Quote from: MrTAToad on 2011-Sep-23
What is it for the Caanoo

BOAT

:nana:
Witty!  :enc:

Sea monkeys!   (sorry, it is a family joke)
Title: Re: preprocessor variables for platforms
Post by: Kitty Hello on 2011-Sep-26
haha.

Back to topic: it's
?IFDEF CAANOO

Title: Re: preprocessor variables for platforms
Post by: MrTAToad on 2011-Oct-12
I presume they return the same for PLATFORMINFO$(""). Do they return anything special for "DEVICE" ?
Title: Re: preprocessor variables for platforms
Post by: Kitty Hello on 2011-Oct-12
I will make the next version have additional preprocessor defiens for platforms, so you have TOUCHSCREEN, KEYBOARD that work across several platforms.
Also TARGET_WEBOS for WEBOS and PALM_PIXI.
And TARGET_IOS for iPhone and iOS (which will be the native on windows compiler).