preprocessor variables for platforms

Previous topic - Next topic

Kitty Hello

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


MrTAToad


ampos

check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

Dabz

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


ampos

check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

Kitty Hello

haha.

Back to topic: it's
?IFDEF CAANOO


MrTAToad

I presume they return the same for PLATFORMINFO$(""). Do they return anything special for "DEVICE" ?

Kitty Hello

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).