BASIC

Author Topic: Preprocessor Defines  (Read 1640 times)

Offline mrplant

  • Mr. Polyvector
  • ***
  • Posts: 232
    • View Profile
Preprocessor Defines
« on: 2013-Feb-22 »

The manual states:

The following preprocessor variables are already defined by GLBasic :

Defined names

The following symbols are defined by the editor:
<B>GLB_DEBUG</B> Debug mode is active
<B>GLB_VERSION</B> The version number of the compiler
<B>GLB_CONSOLE</B> Program is a console program

Platforms:
<B>WIN32</B> Current platform is: Win32
<B>OSXUNI</B> Apple Mac OS-X
<B>LINUX</B> Linux x86
<B>IPHONE</B>iPhone, iPod Touch
<B>WINCE</B>Windows Mobile, Windows Phone, PocketPC
<B>GP2XWIZ</B>Gamepark Holding GP2X-Wiz
<B>WIN32DLL</B>Win32, DLL
<B>GP2X</B>Gamepark holding GP2X (F100, F200)
<B>XBOXLINUX</B>Linux x86, software renderer
<B>CAANOO</B>GPH Caanoo device


I am on V10 - is there any predefined names for detecting the Android platform?

I could do with this in my game.

MrTAToad

  • Guest
Re: Preprocessor Defines
« Reply #1 on: 2013-Feb-23 »
If I remember correctly you need :

Code: GLBasic [Select]
?IF DEFINED(ANDROID)
...
?ENDIF