Difference between revisions of "Defines"

Jump to navigation Jump to search
1,614 bytes removed ,  20:26, 28 September 2010
Select which defines are actually to be defined by backend; removed lots of defines used only internally by a single engine or backend
(Created page with '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 ex…')
 
(Select which defines are actually to be defined by backend; removed lots of defines used only internally by a single engine or backend)
Line 2: Line 2:


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
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.


{| border="1" cellspacing="0" cellpadding="2" width=100
{| border="1" cellspacing="0" cellpadding="2" width=100
Line 10: Line 16:
! Purpose
! Purpose
|-
|-
| ACTOR_DEBUG
| AUDIO_REVERSE_STEREO
|
|
|
|
|
|
|-
|-
| ADLIB_DISABLE_VOICE_MAPPING
| BACKEND_8BIT
|
|
|
|
|
|
|-
|-
| ALLOW_CPU_SCALER
| DATA_PATH
|
|
|
|
|
|
|-
|-
| ANDROID
| DISABLE_COMMAND_LINE
|
|
|
|
|
|
|-
|-
| ARM
| DISABLE_DOSBOX_OPL
|
|
|
|
|
|
|-
|-
| ARM7
| DISABLE_FANCY_THEMES
|
|
|
|
|
|
|-
|-
| ARM9
| DISABLE_GUI_BUILTIN_THEME
|
|
|
|
|
|
|-
|-
| ARM_ADPCM
| DISABLE_HELP
|
|
|
|
|
|
|-
|-
| assert
| DISABLE_SID
|
|
|
|
|
|
|-
|-
| AUDIO_REVERSE_STEREO
| DISABLE_TEXT_CONSOLE
|
|
|
|
|
|
|-
|-
| BACKEND_8BIT
| DYNAMIC_MODULES
|
|
|
|
|
|
|-
|-
| BODGE
| ENABLE_AGI
|
|
|
|
|
|
|-
|-
| breakeven_point
| ENABLE_AGOS2
|
|
|
|
|
|
|-
|-
| CAN_WRITE_TO_DISC
| ENABLE_FASCIN_ADLIB
|
|
|
|
|
|
|-
|-
| CASESENSITIVITYDEFAULT_NO
| ENABLE_GROOVIE2
|
|
|
|
|
|
|-
|-
| CEACTIONSPOCKET
| ENABLE_HE
|
|
|
|
|
|
|-
|-
| CEACTIONSSMARTPHONE
| ENABLE_IHNM
|
|
|
|
|
|
|-
|-
| CEDEVICE
| ENABLE_INHM
|
|
|
|
|
|
|-
|-
| CEGUI_GUIELEMENT
| ENABLE_KEYMAPPER
|
|
|
|
|
|
|-
|-
| CEGUI_ITEMACTION
| ENABLE_LOL
|
|
|
|
|
|
|-
|-
| CEGUI_ITEMSWITCH
| ENABLE_PROFILING
|
|
|
|
|
|
|-
|-
| CEGUI_PANEL
| ENABLE_SAGA2
|
|
|
|
|
|
|-
|-
| CEGUI_PANELITEM
| ENABLE_SCI32
|
|
|
|
|
|
|-
|-
| CEGUI_PANELKEYBOARD
| ENABLE_SCI3_GAMES
|
|
|
|
|
|
|-
|-
| CEGUI_SDL_IMAGERESOURCE
| ENABLE_SCUMM
|
|
|
|
|
|
|-
|-
| CEGUI_TOOLBAR
| ENABLE_SCUMM_7_8
|
|
|
|
|
|
|-
|-
| CEGUI_TOOLBARHANDLER
| ENABLE_VKEYBD
|
|
|
|
|
|
|-
|-
| CEKEYS_EVENTSBUFFER
| FORCE_RTL
|
|
|
|
|
|
|-
|-
| CELAUNCHERDIALOG
| PLUGIN_DIRECTORY
|
|
|
|
|
|
|-
|-
| CESCALER
| PLUGIN_EXPORT
|
|
|
|
|
|
|-
|-
| CMS_DISABLE_VOICE_MAPPING
| PLUGIN_PREFIX
|
|
|
|
|
|
|-
|-
| COREAUDIO_DISABLE_REVERB
| PLUGIN_SUFFIX
|
|
|
|
|
|
|-
|-
| CREAT_OPTIONS
| SCUMM_LITTLE_ENDIAN
|
|
|
|
|
|
|-
|-
| DATA_PATH
| SCUMM_NEED_ALIGNMENT
|
|
|
|
|
|
|-
|-
| DEBUG
| USE_ALSA
|
|
|
|
|
|
|-
|-
| DEBUG_ADLIB
| USE_ARM_COSTUME_ASM
|
|
|
|
|
|
|-
|-
| DEBUG_BUFFERS
| USE_ARM_GFX_ASM
|
|
|
|
|
|
|-
|-
| DEBUG_EXTRACTION_TABLES
| USE_ARM_SCALER_ASM
|
|
|
|
|
|
|-
|-
| DEBUG_HASH_COLLISIONS
| USE_ARM_SMUSH_ASM
|
|
|
|
|
|
|-
|-
| DEBUG_PARSER
| USE_DETECTLANG
|
|
|
|
|
|
|-
|-
| DEBUG_RATECONV
| USE_FLAC
|
|
|
|
|
|
|-
|-
| DEBUG_SPRITE_MASK
| USE_FLUIDSYNTH
|
|
|
|
|
|
|-
|-
| DEBUG_WII_GDB
| USE_HQ_SCALERS
|
|
|
|
|
|
|-
|-
| DEBUG_WII_MEMSTATS
| USE_INDEO3
|
|
|
|
|
|
|-
|-
| DETECTOR_TESTING_HACK
| USE_MAD
|
|
|
|
|
|
|-
|-
| DETECT_BRODERBUND_TITLES
| USE_MPEG2
|
|
|
|
|
|
|-
|-
| DISABLE_COMMAND_LINE
| USE_MPEG2_0_3_1
|
|
|
|
|
|
|-
|-
| DISABLE_DOSBOX_OPL
| USE_MT32EMU
|
|
|
|
|
|
|-
|-
| DISABLE_FANCY_THEMES
| USE_NASM
|
|
|
|
|
|
|-
|-
| DISABLE_HELP
| USE_OSD
|
|
|
|
|
|
|-
|-
| DISABLE_MD5
| USE_PROFILER
|
|
|
|
|
|
|-
|-
| DISABLE_NES_APU
| USE_READLINE
|
|
|
|
|
|
|-
|-
| DISABLE_PSP_MP3
| USE_RGB_COLOR
|
|
|
|
|
|
|-
|-
| DISABLE_SAVEGAME_SORTING
| USE_SCALERS
|
|
|
|
|
|
|-
|-
| DISABLE_SID
| USE_SEQ_MIDI
|
|
|
|
|
|
|-
|-
| DISABLE_TEXT_CONSOLE
| USE_TEXT_CONSOLE
|
|
|
|
|
|
|-
|-
| DISC_CACHE
| USE_TRANSLATION
|
|
|
|
|
|
|-
|-
| DITHER
| USE_TREMOLO
|
|
|
|
|
|
|-
|-
| DL_DEBUG
| USE_TREMOR
|
|
|
|
|
|
|-
|-
| DRAW_GRAPHICS
| USE_VORBIS
|
|
|
|
|
|
|-
|-
| DS_BUILD_D
| USE_ZLIB
|
|
|
|
|
|
|}
==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" width=100
|-
|-
| DS_BUILD_F
! Token
! Defined by
! Used in
! Purpose
|-
| ANDROID
|
|
|
|
|
|
|-
|-
| dumpResources
| ARM
|
|
|
|
|
|
|-
|-
| DUMP_OBJECT
| COREAUDIO_DISABLE_REVERB
|
|
|
|
|
|
|-
|-
| DUMP_SCRIPT
| DEBUG
|
|
|
|
|
|
|-
|-
| DUMP_SCRIPTS
| DEBUG_ADLIB
|
|
|
|
|
|
|-
|-
| DUMP_STDOUT
| DEBUG_EXTRACTION_TABLES
|
|
|
|
|
|
|-
|-
| DW2_EXACT_SIZE
| DEBUG_HASH_COLLISIONS
|
|
|
|
|
|
|-
|-
| DXA_EXPERIMENT_MAXD
| DEBUG_PARSER
|
|
|
|
|
|
|-
|-
| DYNAMIC_MODULES
| DEBUG_RATECONV
|
|
|
|
|
|
|-
|-
| ENABLE_32BIT
| DEBUG_SPRITE_MASK
|
|
|
|
|
|
|-
|-
| ENABLE_AGI
| DEBUG_WII_GDB
|
|
|
|
|
|
|-
|-
| ENABLE_AGOS2
| DEBUG_WII_MEMSTATS
|
|
|
|
|
|
|-
|-
| ENABLE_FASCIN_ADLIB
| DETECTOR_TESTING_HACK
|
|
|
|
|
|
|-
|-
| ENABLE_GROOVIE2
| DETECT_BRODERBUND_TITLES
|
|
|
|
|
|
|-
|-
| ENABLE_HE
| DISABLE_MD5
|
|
|
|
|
|
|-
|-
| ENABLE_IHNM
| DISABLE_NES_APU
|
|
|
|
|
|
|-
|-
| ENABLE_INHM
| DISABLE_PSP_MP3
|
|
|
|
|
|
|-
|-
| ENABLE_KEYMAPPER
| DISABLE_SAVEGAME_SORTING
|
|
|
|
|
|
|-
|-
| ENABLE_LOL
| DISC_CACHE
|
|
|
|
|
|
|-
|-
| ENABLE_PROFILING
| DITHER
|
|
|
|
|
|
|-
|-
| ENABLE_RENDER_MEASURE
| DL_DEBUG
|
|
|
|
|
|
|-
|-
| ENABLE_SAGA2
| DRAW_GRAPHICS
|
|
|
|
|
|
|-
|-
| ENABLE_SCI32
| DUMP_OBJECT
|
|
|
|
|
|
|-
|-
| ENABLE_SCI3_GAMES
| DUMP_SCRIPT
|
|
|
|
|
|
|-
|-
| ENABLE_SCUMM
| DUMP_SCRIPTS
|
|
|
|
|
|
|-
|-
| ENABLE_SCUMM_7_8
| DUMP_STDOUT
|
|
|
|
|
|
|-
|-
| ENABLE_VKEYBD
| DW2_EXACT_SIZE
|
|
|
|
|
|
|-
|-
| EOF
| DXA_EXPERIMENT_MAXD
|
|
|
|
|
|
|-
|-
| EPOC_AS_APP
| ENABLE_RENDER_MEASURE
|
|
|
|
|
|
|-
|-
| FILE_TIME_SUPPORT
| EPOC_AS_APP
|
|
|
|
|
|
|-
|-
| FORCEINLINE
| FILE_TIME_SUPPORT
|
|
|
|
|
|
|-
|-
| FORCE_RTL
| FORCEINLINE
|
|
|
|
Line 481: Line 499:
|-
|-
| FUNCTION_DEBUG
| FUNCTION_DEBUG
|
|
|
|-
| F_OK
|
|
|
|
Line 491: Line 504:
|-
|-
| GAMECUBE
| GAMECUBE
|
|
|
|-
| GC_DEBUG
|
|
|
|-
| GC_DEBUG_CODE
|
|
|
|-
| GC_DEBUG_VERBOSE
|
|
|
|-
| GL_OES_draw_texture
|
|
|
|-
| GRAPHICS_QDM2_H
|
|
|
|-
| GRAPHICS_SJIS_H
|
|
|
|-
| GRAPHICS_VIDEO_COKTELDECODER_H
|
|
|
|-
| GUI_ENABLE_BUILTIN_THEME
|
|
|
|
Line 536: Line 509:
|-
|-
| GUI_THEME_EVAL
| GUI_THEME_EVAL
|
|
|
|-
| HAVE_CONFIG_H
|
|
|
|-
| HAVE_GETOPT_H
|
|
|
|-
| HAVE_GETOPT_LONG
|
|
|
|-
| HAVE_LIBPNG
|
|
|
|-
| HAVE_OBSTACK_H
|
|
|
|-
| HAVE_UNISTD_H
|
|
|
|
Line 581: Line 524:
|-
|-
| INCLUDED_FROM_BASE_VERSION_CPP
| INCLUDED_FROM_BASE_VERSION_CPP
|
|
|
|-
| int64_t
|
|
|
|
Line 601: Line 539:
|-
|-
| IPHONE_OFFICIAL
| IPHONE_OFFICIAL
|
|
|
|-
| isdigit
|
|
|
|
Line 666: Line 599:
|-
|-
| MAC_OPTIONS
| MAC_OPTIONS
|
|
|
|-
| main
|
|
|
|-
| MAX
|
|
|
|
Line 721: Line 644:
|-
|-
| MT32EMU_HAVE_X86
| MT32EMU_HAVE_X86
|
|
|
|-
| M_LN2
|
|
|
|-
| M_SQRT1_2
|
|
|
|
Line 776: Line 689:
|-
|-
| PERFECT_5_TO_4_RESCALING
| PERFECT_5_TO_4_RESCALING
|
|
|
|-
| PI
|
|
|
|-
| PLUGIN_DIRECTORY
|
|
|
|-
| PLUGIN_EXPORT
|
|
|
|-
| PLUGIN_PREFIX
|
|
|
|-
| PLUGIN_SUFFIX
|
|
|
|
Line 851: Line 739:
|-
|-
| RONIN_TIMER_ACCESS
| RONIN_TIMER_ACCESS
|
|
|
|-
| R_OK
|
|
|
|
Line 895: Line 778:
|
|
|-
|-
| SCI_VERBOSE_resMan
| SCI_VERBOSE_RESMAN
|
|
|
|
Line 906: Line 789:
|-
|-
| SCRIPT_TEST
| SCRIPT_TEST
|
|
|
|-
| ScummAPPH
|
|
|
|-
| ScummVMapph
|
|
|
|
Line 941: Line 814:
|-
|-
| SCUMM_IMUSE_INTERNAL
| SCUMM_IMUSE_INTERNAL
|
|
|
|-
| SCUMM_LITTLE_ENDIAN
|
|
|
|-
| SCUMM_NEED_ALIGNMENT
|
|
|
|-
| SDLSYMBIANH
|
|
|
|
Line 981: Line 839:
|-
|-
| SOUND_CROP_CHANNELS
| SOUND_CROP_CHANNELS
|
|
|
|-
| SOUND_SHORTEN_H
|
|
|
|
Line 1,011: Line 864:
|-
|-
| TEST_MEMORY_COPY
| TEST_MEMORY_COPY
|
|
|
|-
| Timer
|
|
|
|
Line 1,056: Line 904:
|-
|-
| USERSPACE_ONLY
| USERSPACE_ONLY
|
|
|
|-
| USE_ALSA
|
|
|
|-
| USE_ARM_COSTUME_ASM
|
|
|
|-
| USE_ARM_GFX_ASM
|
|
|
|-
| USE_ARM_SCALER_ASM
|
|
|
|-
| USE_ARM_SMUSH_ASM
|
|
|
|-
| USE_BUILT_IN_DRIVER_SELECTION
|
|
|
|-
| USE_DEBUGGER
|
|
|
|-
| USE_DETECTLANG
|
|
|
|-
| USE_DISPLAY_CALLBACK
|
|
|
|-
| USE_FLAC
|
|
|
|-
| USE_FLUIDSYNTH
|
|
|
|
Line 1,116: Line 909:
|-
|-
| USE_HASHMAP_MEMORY_POOL
| USE_HASHMAP_MEMORY_POOL
|
|
|
|-
| USE_HQ_SCALERS
|
|
|
|-
| USE_INDEO3
|
|
|
|-
| USE_INTERPOLATION
|
|
|
|-
| USE_LIBCARTRESET
|
|
|
|-
| USE_MAD
|
|
|
|-
| USE_MPEG2
|
|
|
|-
| USE_MPEG2_0_3_1
|
|
|
|-
| USE_MT32EMU
|
|
|
|-
| USE_NASM
|
|
|
|-
| USE_NEWLIB
|
|
|
|-
| USE_OSD
|
|
|
|-
| USE_PROFILER
|
|
|
|-
| USE_READLINE
|
|
|
|-
| USE_RGB_COLOR
|
|
|
|-
| USE_SCALERS
|
|
|
|-
| USE_SEQ_MIDI
|
|
|
|-
| USE_TEXT_CONSOLE
|
|
|
|-
| USE_TRANSLATION
|
|
|
|-
| USE_TREMOLO
|
|
|
|-
| USE_TREMOR
|
|
|
|-
| USE_VIBRA_SE_PXXX
|
|
|
|-
| USE_VORBIS
|
|
|
|-
| USE_WII_DI
|
|
|
|-
| USE_WII_KBD
|
|
|
|-
| USE_WII_SMB
|
|
|
|-
| USE_ZLIB
|
|
|
|-
| USING_ARM_BLITTERS
|
|
|
|
Line 1,276: Line 934:
|-
|-
| WRAP_MALLOC
| WRAP_MALLOC
|
|
|
|-
| W_OK
|
|
|
|-
| _DEBUG
|
|
|
|-
| _ENABLE_DEBUG_
|
|
|
|-
| _FILE_DEFINED
|
|
|
|-
| _GBA_NDS_FAT_INCLUDED
|
|
|
|-
| _L
|
|
|
|-
| _MSC_VER
|
|
|
|-
| _WIN32_WCE
|
|
|
|-
| _Windows
|
|
|
|-
| __amigaos4__
|
|
|
|-
| __BEOS__
|
|
|
|-
| __cplusplus
|
|
|
|-
| __CREATELURE_DAT__
|
|
|
|
Line 1,356: Line 949:
|-
|-
| __FRAMFS_SAVE_MANAGER__
| __FRAMFS_SAVE_MANAGER__
|
|
|
|-
| __GNUC__
|
|
|
|-
| __KmpSearch__
|
|
|
|
Line 1,456: Line 1,039:
|-
|-
| __SYMBIAN32__
| __SYMBIAN32__
|
|
|
|-
| __TextFile__
|
|
|
|
Line 1,479: Line 1,057:
|
|
|
|
|-
| __WINS__
|
|
|
|}
|}
1,079

edits

Navigation menu