Help Center
Help CenterFreeBASIC

__FB_ANDROID__keyword

Intrinsic define set by the compiler

Intrinsic Defineskeyworddocumented

Syntax

__FB_ANDROID__

Description


Define without a value created at compile time when targeting android platforms, when the -target android command line option is used. It can be used to compile parts of the program only for a such target.

Remarks

Version


  • Since fbc 1.20.0

Differences from QB


  • New to FreeBASIC

See also


Example


#ifdef __FB_ANDROID__

  '...instructions only for android target...

#else

  '...instructions not for android target...

#endif 


Reference

  • Documented in KeyPgDdfbandroid.html