Preprocessors
A list of preprocessors that can be used in your code. A preprocessor can be used to change your code at compile time.
Sample:
void MyFunction()
{
#if defined(EDITOR)
Debug::Print("Running in the editor!");
#else
#if defined(__PSP__)
Debug::Print("Running on PSP!");
#elif defined(__vita__)
Debug::Print("Running on PsVita!");
#else
Debug::Print("Running on something else!");
#endif
#endif
}
Platforms
__PSP__
is defined when compiling for PlayStation Portable__vita__
is defined when compiling for PlayStation Vita__PS3__
is defined when compiling for PlayStation 3_WIN32
&_WIN64
is defined when compiling for Windows__LINUX__
is defined when compiling for Linux
Editor
EDITOR
is defined when compiling to play in the editor
Debug
DEBUG
is defined when compiling in debug modeUSE_PROFILER
is defined when compiling with the profiler enabled