Jump to content

[SOLVED] pre-defined preprocessor


photo

Recommended Posts

Posted

Hello

 

Currently there are a few pre-defined preprocessor:

 

 

  • __VERSION__—interpreter version, for example, "1.82".
  • NDEBUG—the binary does not contain debugging information (release build).
  • _WIN32—target operation system is 32-bit Windows.
  • _WIN64—target operation system is 64-bit Windows.
  • HAS_OPENGL—the binary is built with OpenGL rendering system.
  • HAS_DIRECT3D9—the binary is built with Direct3D9 rendering system.
  • HAS_OPENAL—Unigine is built with OpenAL sound system.
  • HAS_FMOD—Unigine is built with FMOD sound system.

It is possible to add some more for the different platforms directly in the engine? (I know I can do this manually)

Or maybe they are already there but not documented?

 

_LIN32—target operation system is 32-bit Linux.

_LIN64—target operation system is 64-bit Linux.

....

....

....

 

Thanks

Manuel

Posted

// build
NDEBUG
HAS_MEMORY

USE_DOUBLE

// platforms
_WIN32
_LINUX
_MACOS
_CELLOS_LV2
_WINRT
_ANDROID
_IOS


// interpreter
__FILE__
__LINE__
__VERSION__
HAS_SOCKET
HAS_BUFFER
HAS_XML
HAS_IMAGE
HAS_REGEXP


// render
HAS_OPENGL
HAS_OPENGLES
HAS_DIRECT3D9
HAS_DIRECT3D11
HAS_DIRECT3D119
HAS_PLAYSTATION3


// sound
HAS_OPENAL
HAS_XAUDIO2


// controls
HAS_SIXAXIS
HAS_XPAD360
HAS_JOYSTICK

×
×
  • Create New...