Difference between revisions of "Defines"
(Select which defines are actually to be defined by backend; removed lots of defines used only internally by a single engine or backend) |
(Initial classification of the defines that ring a bell) |
||
Line 3: | Line 3: | ||
No additional filtering has been performed as of yet; some tokens are defined by a platform, while others may not actually be used. Additionally, defined symbols not used in #ifndef or #ifdef are not included at all here. | No additional filtering has been performed as of yet; some tokens are defined by a platform, while others may not actually be used. Additionally, defined symbols not used in #ifndef or #ifdef are not included at all here. | ||
=Defines to be set by/for backends= | |||
The following defines are meant to be defined by backend authors, typically | The following defines are meant to be defined by backend authors, typically | ||
in configure (or a custom Makefile). Usually these enable or disable certain | in configure (or a custom Makefile). Usually these enable or disable certain | ||
Line 9: | Line 9: | ||
that won't work on the target device anyway, to free up some memory. | that won't work on the target device anyway, to free up some memory. | ||
{| border="1" cellspacing="0" cellpadding="2" | ==Defines to configure the backend== | ||
{| border="1" cellspacing="0" cellpadding="2" | |||
|- | |- | ||
! Token | ! Token | ||
Line 31: | Line 32: | ||
| | | | ||
|- | |- | ||
| | | MIXER_DOUBLE_BUFFERING | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | OUTPUT_UNSIGNED_AUDIO | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | SCUMM_BIG_ENDIAN | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | SCUMM_LITTLE_ENDIAN | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | SCUMM_NEED_ALIGNMENT | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | SCUMMVM_DONT_DEFINE_TYPES | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | SMALL_SCREEN_DEVICE | ||
| | | | ||
| | | | ||
| | | | ||
|} | |||
==Defines to enable usage of external dependencies== | |||
{| border="1" cellspacing="0" cellpadding="2" | |||
|- | |- | ||
| | ! Token | ||
! Defined by | |||
! Used in | |||
! Purpose | |||
|- | |||
| LEGACY_FLAC | |||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | USE_FLAC | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | USE_MAD | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | USE_MPEG2 | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | USE_MPEG2_0_3_1 | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | USE_READLINE | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | USE_TREMOLO | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | USE_TREMOR | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | USE_VORBIS | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | USE_ZLIB | ||
| | | | ||
| | | | ||
| | | | ||
|} | |||
==Defines to configure plugin handling== | |||
{| border="1" cellspacing="0" cellpadding="2" | |||
|- | |||
! Token | |||
! Defined by | |||
! Used in | |||
! Purpose | |||
|- | |- | ||
| | | DYNAMIC_MODULES | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | PLUGIN_DIRECTORY | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | PLUGIN_EXPORT | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | PLUGIN_PREFIX | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | PLUGIN_SUFFIX | ||
| | | | ||
| | | | ||
| | | | ||
|} | |||
==Defines to enable engines or parts of them== | |||
{| border="1" cellspacing="0" cellpadding="2" | |||
|- | |||
! Token | |||
! Defined by | |||
! Used in | |||
! Purpose | |||
|- | |- | ||
| | | ENABLE_AGI | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | ENABLE_AGOS2 | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | ENABLE_GROOVIE2 | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | ENABLE_HE | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | ENABLE_IHNM | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | ENABLE_LOL | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | ENABLE_SAGA2 | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | ENABLE_SCI32 | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | ENABLE_SCI3_GAMES | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | ENABLE_SCUMM | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | ENABLE_SCUMM_7_8 | ||
| | | | ||
| | | | ||
| | | | ||
|} | |||
==Defines to change user-visible default behaviours== | |||
{| border="1" cellspacing="0" cellpadding="2" | |||
|- | |||
! Token | |||
! Defined by | |||
! Used in | |||
! Purpose | |||
|- | |- | ||
| | | FORCE_RTL | ||
| | | | ||
| | | | ||
|Makes ScummVM return to the launcher instead of exiting (ideal for ports that take a long while to load) | |||
|- | |- | ||
| | | LURE_CLICKABLE_MENUS | ||
| | | | ||
| | | | ||
|Makes the Lure of the Temptress' menus clickable instead of hoverable (making them more usable for touchscreens) | |||
|} | |||
==Defines to enable common optional features== | |||
{| border="1" cellspacing="0" cellpadding="2" | |||
|- | |||
! Token | |||
! Defined by | |||
! Used in | |||
! Purpose | |||
|- | |- | ||
| | | ENABLE_KEYMAPPER | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | ENABLE_VKEYBD | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | DISABLE_COMMAND_LINE | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | DISABLE_FANCY_THEMES | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | DISABLE_HELP | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | DISABLE_TEXT_CONSOLE | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | USE_HQ_SCALERS | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | USE_INDEO3 | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | USE_OSD | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | USE_RGB_COLOR | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | USE_SCALERS | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | USE_TEXT_CONSOLE | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | USE_TRANSLATION | ||
| | | | ||
| | | | ||
| | | | ||
|} | |||
==Defines to enable platform specific optional features== | |||
{| border="1" cellspacing="0" cellpadding="2" | |||
|- | |||
! Token | |||
! Defined by | |||
! Used in | |||
! Purpose | |||
|- | |- | ||
| | | DISABLE_PSP_MP3 | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | USE_DETECTLANG | ||
| | | | ||
| | | | ||
|Enables the detection of the system language (supported on POSIX systems, Windows(?)) | |||
|} | |||
==Defines to enable emulation of audio devices== | |||
{| border="1" cellspacing="0" cellpadding="2" | |||
|- | |||
! Token | |||
! Defined by | |||
! Used in | |||
! Purpose | |||
|- | |- | ||
| | | DISABLE_DOSBOX_OPL | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | DISABLE_NES_APU | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | DISABLE_SID | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | ENABLE_FASCIN_ADLIB | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | USE_MT32EMU | ||
| | | | ||
| | | | ||
| | | | ||
|} | |||
==Defines to enable platform specific MIDI drivers== | |||
{| border="1" cellspacing="0" cellpadding="2" | |||
|- | |||
! Token | |||
! Defined by | |||
! Used in | |||
! Purpose | |||
|- | |- | ||
| | | USE_ALSA | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | USE_FLUIDSYNTH | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | USE_SEQ_MIDI | ||
| | | | ||
| | | | ||
Line 322: | Line 395: | ||
|} | |} | ||
== | ==Defines to enable common optimizations== | ||
{| border="1" cellspacing="0" cellpadding="2" | |||
{| border="1" cellspacing="0" cellpadding="2" | |||
|- | |- | ||
! Token | ! Token | ||
Line 333: | Line 403: | ||
! Purpose | ! Purpose | ||
|- | |- | ||
| | | DISABLE_GUI_BUILTIN_THEME | ||
| | | | ||
| | | | ||
|Disables embedding the default theme into the executable (reduces the binary size) | |||
|- | |- | ||
| | | DISABLE_SAVEGAME_SORTING | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | REDUCE_MEMORY_USAGE | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | STREAM_AUDIO_FROM_DISK | ||
| | | | ||
| | | | ||
| | | | ||
|} | |||
==Defines to enable platform specific optimizations== | |||
{| border="1" cellspacing="0" cellpadding="2" | |||
|- | |||
! Token | |||
! Defined by | |||
! Used in | |||
! Purpose | |||
|- | |- | ||
| | | MT32EMU_HAVE_X86 | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | USE_ARM_COSTUME_ASM | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | USE_ARM_GFX_ASM | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | USE_ARM_SCALER_ASM | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | USE_ARM_SMUSH_ASM | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | USE_NASM | ||
| | | | ||
| | | | ||
|Enables x86 optimized versions of the HQ scalers | |||
|} | |||
==Defines to enable debugging and testing facilities== | |||
{| border="1" cellspacing="0" cellpadding="2" | |||
|- | |||
! Token | |||
! Defined by | |||
! Used in | |||
! Purpose | |||
|- | |- | ||
| | | DEBUG | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | DEBUG_ADLIB | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | DEBUG_EXTRACTION_TABLES | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | DEBUG_HASH_COLLISIONS | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | DEBUG_PARSER | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | DEBUG_RATECONV | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | DEBUG_SPRITE_MASK | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | DEBUG_WII_GDB | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | DEBUG_WII_MEMSTATS | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | DETECTOR_TESTING_HACK | ||
| | | | ||
| | | | ||
Line 434: | Line 522: | ||
|- | |- | ||
| DL_DEBUG | | DL_DEBUG | ||
| | | | ||
| | | | ||
Line 463: | Line 546: | ||
| | | | ||
|- | |- | ||
| | | ENABLE_PROFILING | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | FUNCTION_DEBUG | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | INTRO_TEST | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | LAYOUT_DEBUG_DIALOG | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | NDEBUG | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | PSP_ENABLE_SPEED_TESTS | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | PSP_ENABLE_UNIT_TESTS | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | SAGA_DEBUG | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | SCENE_DEBUG | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | SCI_DEBUG_PARSE_TREE_AUGMENTATION | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | SCI_VERBOSE_RESMAN | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | SCRIPT_DEBUG | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | SCRIPT_TEST | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | SWORD2_DEBUG | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | TEST_MEMORY_COPY | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | USE_PROFILER | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | VM_DEBUG_SEND | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | __PS2_DEBUG__ | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | __PS2_FILE_DEBUG__ | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | __PSP_DEBUG_FUNCS__ | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | __PSP_DEBUG_PRINT__ | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | __PSP_PRINT_TO_FILE__ | ||
| | | | ||
| | | | ||
| | | | ||
|} | |||
==Unsorted== | |||
The following defines have not yet put into any category. | |||
Many of them might also be inappropriate for this page. | |||
{| border="1" cellspacing="0" cellpadding="2" | |||
|- | |||
! Token | |||
! Defined by | |||
! Used in | |||
! Purpose | |||
|- | |- | ||
| | | COREAUDIO_DISABLE_REVERB | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | DETECT_BRODERBUND_TITLES | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | DISABLE_MD5 | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | DISC_CACHE | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | DITHER | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | DRAW_GRAPHICS | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | DW2_EXACT_SIZE | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | DXA_EXPERIMENT_MAXD | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | ENABLE_RENDER_MEASURE | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | EPOC_AS_APP | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | FILE_TIME_SUPPORT | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | FORCEINLINE | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | FORCE_SLIDY | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | GUI_THEME_EVAL | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | HEAVY_LOGGING | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | INADDR_NONE | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | INCLUDED_FROM_BASE_VERSION_CPP | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | JAPAN | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | JOY_ANALOG | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | JOY_INVERT_Y | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | LIMIT_FPS | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | LIMIT_FRAME_RATE | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | MAC_OPTIONS | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | MAXPATHLEN | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | MAXTRAX_HAS_MICROTONAL | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | MAXTRAX_HAS_MODULATION | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | MAX_INT | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | MIN | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | NORETURN_POST | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | NORETURN_PRE | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | NOSERIAL | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | NO_ADAPTOR | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | PATH_MAX | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | PERFECT_5_TO_4_RESCALING | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | PRINT_BUFFERS | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | PSP_KB_SHELL | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | REG_EXEMEMCNT | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | REG_EXMEMCNT | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | RELEASE_BUILD | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | RONIN_TIMER_ACCESS | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | SAMPLES_PER_SEC_8000 | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | SCALER_PROFILE | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | SCI_CONSOLE | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | SCUMMVM_SVN_REVISION | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | SCUMM_IMUSE_INTERNAL | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | SKIP_INTRO | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | SLOW_RINCE_DOWN | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | SCUMMVM_IPC_INCLUDE | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | SNPRINTF_LONGLONG_SUPPORT | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | SOUND_CROP_CHANNELS | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | STRINGBUFLEN | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | SYSEX_CALLBACK_FUNCTION | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | TIMIDITY_LOW_DELAY | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | UNICODE | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | UNZ_BUFSIZE | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | UNZ_MAXFILENAMEINZIP | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | UPGRADE_ALL_TARGETS_HACK | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | USERSPACE_ONLY | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | USE_HASHMAP_MEMORY_POOL | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | WAVE_PRECISION | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | WIN32_PLATFORM_WFSP | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | WRAP_MALLOC | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | __FRAMFS_SAVE_MANAGER__ | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | __MINGW32CE__ | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | __MMX__ | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | __N64_PORTDEFS__ | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | __PAKFS_SAVE_MANAGER__ | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | __PS2FILE_IO__ | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | __PS2_FILE_SEMA__ | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | __SSE__ | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | __USE_INLINE__ | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | __USE_LIBMC__ | ||
| | | | ||
| | | | ||
| | | | ||
|} | |||
=Defines used to determine the target platform/OS= | |||
{| border="1" cellspacing="0" cellpadding="2" | |||
|- | |||
! Token | |||
! Defined by | |||
! Used in | |||
! Purpose | |||
|- | |- | ||
| | | ANDROID | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | ARM | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | GAMECUBE | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | IPHONE | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | IPHONE_OFFICIAL | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | LINUPY | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | LINUXMOTO_SDL | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | MACOSX | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | MOTOEZX | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | MOTOMAGX | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | NDS | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | QTOPIA | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | S60 | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | UIQ | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | UNIX | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | WIN32 | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | __DC__ | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | __DS__ | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | __N64__ | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | __OS2__ | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | __PLAYSTATION2__ | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | __PSP__ | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | __sgi | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
| | | __SYMBIAN32__ | ||
| | | | ||
| | | |
Revision as of 23:16, 28 September 2010
This is a list of all the tokens that are being used in a #ifdef or #ifndef in a .cpp or .h file, except for .h files, where tokens used as #ifndef FOO_H or #ifndef FOO_H_ are excluded, as these are almost certainly just include guards. The list is current as of r52922.
No additional filtering has been performed as of yet; some tokens are defined by a platform, while others may not actually be used. Additionally, defined symbols not used in #ifndef or #ifdef are not included at all here.
Defines to be set by/for backends
The following defines are meant to be defined by backend authors, typically in configure (or a custom Makefile). Usually these enable or disable certain features in ScummVM. E.g. a low-powered port might turn off some features that won't work on the target device anyway, to free up some memory.
Defines to configure the backend
Token | Defined by | Used in | Purpose |
---|---|---|---|
AUDIO_REVERSE_STEREO | |||
BACKEND_8BIT | |||
DATA_PATH | |||
MIXER_DOUBLE_BUFFERING | |||
OUTPUT_UNSIGNED_AUDIO | |||
SCUMM_BIG_ENDIAN | |||
SCUMM_LITTLE_ENDIAN | |||
SCUMM_NEED_ALIGNMENT | |||
SCUMMVM_DONT_DEFINE_TYPES | |||
SMALL_SCREEN_DEVICE |
Defines to enable usage of external dependencies
Token | Defined by | Used in | Purpose |
---|---|---|---|
LEGACY_FLAC | |||
USE_FLAC | |||
USE_MAD | |||
USE_MPEG2 | |||
USE_MPEG2_0_3_1 | |||
USE_READLINE | |||
USE_TREMOLO | |||
USE_TREMOR | |||
USE_VORBIS | |||
USE_ZLIB |
Defines to configure plugin handling
Token | Defined by | Used in | Purpose |
---|---|---|---|
DYNAMIC_MODULES | |||
PLUGIN_DIRECTORY | |||
PLUGIN_EXPORT | |||
PLUGIN_PREFIX | |||
PLUGIN_SUFFIX |
Defines to enable engines or parts of them
Token | Defined by | Used in | Purpose |
---|---|---|---|
ENABLE_AGI | |||
ENABLE_AGOS2 | |||
ENABLE_GROOVIE2 | |||
ENABLE_HE | |||
ENABLE_IHNM | |||
ENABLE_LOL | |||
ENABLE_SAGA2 | |||
ENABLE_SCI32 | |||
ENABLE_SCI3_GAMES | |||
ENABLE_SCUMM | |||
ENABLE_SCUMM_7_8 |
Defines to change user-visible default behaviours
Token | Defined by | Used in | Purpose |
---|---|---|---|
FORCE_RTL | Makes ScummVM return to the launcher instead of exiting (ideal for ports that take a long while to load) | ||
LURE_CLICKABLE_MENUS | Makes the Lure of the Temptress' menus clickable instead of hoverable (making them more usable for touchscreens) |
Defines to enable common optional features
Token | Defined by | Used in | Purpose |
---|---|---|---|
ENABLE_KEYMAPPER | |||
ENABLE_VKEYBD | |||
DISABLE_COMMAND_LINE | |||
DISABLE_FANCY_THEMES | |||
DISABLE_HELP | |||
DISABLE_TEXT_CONSOLE | |||
USE_HQ_SCALERS | |||
USE_INDEO3 | |||
USE_OSD | |||
USE_RGB_COLOR | |||
USE_SCALERS | |||
USE_TEXT_CONSOLE | |||
USE_TRANSLATION |
Defines to enable platform specific optional features
Token | Defined by | Used in | Purpose |
---|---|---|---|
DISABLE_PSP_MP3 | |||
USE_DETECTLANG | Enables the detection of the system language (supported on POSIX systems, Windows(?)) |
Defines to enable emulation of audio devices
Token | Defined by | Used in | Purpose |
---|---|---|---|
DISABLE_DOSBOX_OPL | |||
DISABLE_NES_APU | |||
DISABLE_SID | |||
ENABLE_FASCIN_ADLIB | |||
USE_MT32EMU |
Defines to enable platform specific MIDI drivers
Token | Defined by | Used in | Purpose |
---|---|---|---|
USE_ALSA | |||
USE_FLUIDSYNTH | |||
USE_SEQ_MIDI |
Defines to enable common optimizations
Token | Defined by | Used in | Purpose |
---|---|---|---|
DISABLE_GUI_BUILTIN_THEME | Disables embedding the default theme into the executable (reduces the binary size) | ||
DISABLE_SAVEGAME_SORTING | |||
REDUCE_MEMORY_USAGE | |||
STREAM_AUDIO_FROM_DISK |
Defines to enable platform specific optimizations
Token | Defined by | Used in | Purpose |
---|---|---|---|
MT32EMU_HAVE_X86 | |||
USE_ARM_COSTUME_ASM | |||
USE_ARM_GFX_ASM | |||
USE_ARM_SCALER_ASM | |||
USE_ARM_SMUSH_ASM | |||
USE_NASM | Enables x86 optimized versions of the HQ scalers |
Defines to enable debugging and testing facilities
Token | Defined by | Used in | Purpose |
---|---|---|---|
DEBUG | |||
DEBUG_ADLIB | |||
DEBUG_EXTRACTION_TABLES | |||
DEBUG_HASH_COLLISIONS | |||
DEBUG_PARSER | |||
DEBUG_RATECONV | |||
DEBUG_SPRITE_MASK | |||
DEBUG_WII_GDB | |||
DEBUG_WII_MEMSTATS | |||
DETECTOR_TESTING_HACK | |||
DL_DEBUG | |||
DUMP_OBJECT | |||
DUMP_SCRIPT | |||
DUMP_SCRIPTS | |||
DUMP_STDOUT | |||
ENABLE_PROFILING | |||
FUNCTION_DEBUG | |||
INTRO_TEST | |||
LAYOUT_DEBUG_DIALOG | |||
NDEBUG | |||
PSP_ENABLE_SPEED_TESTS | |||
PSP_ENABLE_UNIT_TESTS | |||
SAGA_DEBUG | |||
SCENE_DEBUG | |||
SCI_DEBUG_PARSE_TREE_AUGMENTATION | |||
SCI_VERBOSE_RESMAN | |||
SCRIPT_DEBUG | |||
SCRIPT_TEST | |||
SWORD2_DEBUG | |||
TEST_MEMORY_COPY | |||
USE_PROFILER | |||
VM_DEBUG_SEND | |||
__PS2_DEBUG__ | |||
__PS2_FILE_DEBUG__ | |||
__PSP_DEBUG_FUNCS__ | |||
__PSP_DEBUG_PRINT__ | |||
__PSP_PRINT_TO_FILE__ |
Unsorted
The following defines have not yet put into any category. Many of them might also be inappropriate for this page.
Token | Defined by | Used in | Purpose |
---|---|---|---|
COREAUDIO_DISABLE_REVERB | |||
DETECT_BRODERBUND_TITLES | |||
DISABLE_MD5 | |||
DISC_CACHE | |||
DITHER | |||
DRAW_GRAPHICS | |||
DW2_EXACT_SIZE | |||
DXA_EXPERIMENT_MAXD | |||
ENABLE_RENDER_MEASURE | |||
EPOC_AS_APP | |||
FILE_TIME_SUPPORT | |||
FORCEINLINE | |||
FORCE_SLIDY | |||
GUI_THEME_EVAL | |||
HEAVY_LOGGING | |||
INADDR_NONE | |||
INCLUDED_FROM_BASE_VERSION_CPP | |||
JAPAN | |||
JOY_ANALOG | |||
JOY_INVERT_Y | |||
LIMIT_FPS | |||
LIMIT_FRAME_RATE | |||
MAC_OPTIONS | |||
MAXPATHLEN | |||
MAXTRAX_HAS_MICROTONAL | |||
MAXTRAX_HAS_MODULATION | |||
MAX_INT | |||
MIN | |||
NORETURN_POST | |||
NORETURN_PRE | |||
NOSERIAL | |||
NO_ADAPTOR | |||
PATH_MAX | |||
PERFECT_5_TO_4_RESCALING | |||
PRINT_BUFFERS | |||
PSP_KB_SHELL | |||
REG_EXEMEMCNT | |||
REG_EXMEMCNT | |||
RELEASE_BUILD | |||
RONIN_TIMER_ACCESS | |||
SAMPLES_PER_SEC_8000 | |||
SCALER_PROFILE | |||
SCI_CONSOLE | |||
SCUMMVM_SVN_REVISION | |||
SCUMM_IMUSE_INTERNAL | |||
SKIP_INTRO | |||
SLOW_RINCE_DOWN | |||
SCUMMVM_IPC_INCLUDE | |||
SNPRINTF_LONGLONG_SUPPORT | |||
SOUND_CROP_CHANNELS | |||
STRINGBUFLEN | |||
SYSEX_CALLBACK_FUNCTION | |||
TIMIDITY_LOW_DELAY | |||
UNICODE | |||
UNZ_BUFSIZE | |||
UNZ_MAXFILENAMEINZIP | |||
UPGRADE_ALL_TARGETS_HACK | |||
USERSPACE_ONLY | |||
USE_HASHMAP_MEMORY_POOL | |||
WAVE_PRECISION | |||
WIN32_PLATFORM_WFSP | |||
WRAP_MALLOC | |||
__FRAMFS_SAVE_MANAGER__ | |||
__MINGW32CE__ | |||
__MMX__ | |||
__N64_PORTDEFS__ | |||
__PAKFS_SAVE_MANAGER__ | |||
__PS2FILE_IO__ | |||
__PS2_FILE_SEMA__ | |||
__SSE__ | |||
__USE_INLINE__ | |||
__USE_LIBMC__ |
Defines used to determine the target platform/OS
Token | Defined by | Used in | Purpose |
---|---|---|---|
ANDROID | |||
ARM | |||
GAMECUBE | |||
IPHONE | |||
IPHONE_OFFICIAL | |||
LINUPY | |||
LINUXMOTO_SDL | |||
MACOSX | |||
MOTOEZX | |||
MOTOMAGX | |||
NDS | |||
QTOPIA | |||
S60 | |||
UIQ | |||
UNIX | |||
WIN32 | |||
__DC__ | |||
__DS__ | |||
__N64__ | |||
__OS2__ | |||
__PLAYSTATION2__ | |||
__PSP__ | |||
__sgi | |||
__SYMBIAN32__ | |||
__WII__ |