Defines

From ScummVM :: Wiki
Revision as of 20:26, 28 September 2010 by Fingolfin (talk | contribs) (Select which defines are actually to be defined by backend; removed lots of defines used only internally by a single engine or backend)
Jump to navigation Jump to search

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.

Token Defined by Used in Purpose
AUDIO_REVERSE_STEREO
BACKEND_8BIT
DATA_PATH
DISABLE_COMMAND_LINE
DISABLE_DOSBOX_OPL
DISABLE_FANCY_THEMES
DISABLE_GUI_BUILTIN_THEME
DISABLE_HELP
DISABLE_SID
DISABLE_TEXT_CONSOLE
DYNAMIC_MODULES
ENABLE_AGI
ENABLE_AGOS2
ENABLE_FASCIN_ADLIB
ENABLE_GROOVIE2
ENABLE_HE
ENABLE_IHNM
ENABLE_INHM
ENABLE_KEYMAPPER
ENABLE_LOL
ENABLE_PROFILING
ENABLE_SAGA2
ENABLE_SCI32
ENABLE_SCI3_GAMES
ENABLE_SCUMM
ENABLE_SCUMM_7_8
ENABLE_VKEYBD
FORCE_RTL
PLUGIN_DIRECTORY
PLUGIN_EXPORT
PLUGIN_PREFIX
PLUGIN_SUFFIX
SCUMM_LITTLE_ENDIAN
SCUMM_NEED_ALIGNMENT
USE_ALSA
USE_ARM_COSTUME_ASM
USE_ARM_GFX_ASM
USE_ARM_SCALER_ASM
USE_ARM_SMUSH_ASM
USE_DETECTLANG
USE_FLAC
USE_FLUIDSYNTH
USE_HQ_SCALERS
USE_INDEO3
USE_MAD
USE_MPEG2
USE_MPEG2_0_3_1
USE_MT32EMU
USE_NASM
USE_OSD
USE_PROFILER
USE_READLINE
USE_RGB_COLOR
USE_SCALERS
USE_SEQ_MIDI
USE_TEXT_CONSOLE
USE_TRANSLATION
USE_TREMOLO
USE_TREMOR
USE_VORBIS
USE_ZLIB

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
ANDROID
ARM
COREAUDIO_DISABLE_REVERB
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
DETECT_BRODERBUND_TITLES
DISABLE_MD5
DISABLE_NES_APU
DISABLE_PSP_MP3
DISABLE_SAVEGAME_SORTING
DISC_CACHE
DITHER
DL_DEBUG
DRAW_GRAPHICS
DUMP_OBJECT
DUMP_SCRIPT
DUMP_SCRIPTS
DUMP_STDOUT
DW2_EXACT_SIZE
DXA_EXPERIMENT_MAXD
ENABLE_RENDER_MEASURE
EPOC_AS_APP
FILE_TIME_SUPPORT
FORCEINLINE
FORCE_SLIDY
FUNCTION_DEBUG
GAMECUBE
GUI_THEME_EVAL
HEAVY_LOGGING
INADDR_NONE
INCLUDED_FROM_BASE_VERSION_CPP
INTRO_TEST
IPHONE
IPHONE_OFFICIAL
JAPAN
JOY_ANALOG
JOY_INVERT_Y
LAYOUT_DEBUG_DIALOG
LEGACY_FLAC
LIMIT_FPS
LIMIT_FRAME_RATE
LINUPY
LINUXMOTO_SDL
LURE_CLICKABLE_MENUS
MACOSX
MAC_OPTIONS
MAXPATHLEN
MAXTRAX_HAS_MICROTONAL
MAXTRAX_HAS_MODULATION
MAX_INT
MIN
MIXER_DOUBLE_BUFFERING
MOTOEZX
MOTOMAGX
MT32EMU_HAVE_X86
NDEBUG
NDS
NORETURN_POST
NORETURN_PRE
NOSERIAL
NO_ADAPTOR
OUTPUT_UNSIGNED_AUDIO
PATH_MAX
PERFECT_5_TO_4_RESCALING
PRINT_BUFFERS
PSP_ENABLE_SPEED_TESTS
PSP_ENABLE_UNIT_TESTS
PSP_KB_SHELL
QTOPIA
REDUCE_MEMORY_USAGE
REG_EXEMEMCNT
REG_EXMEMCNT
RELEASE_BUILD
RONIN_TIMER_ACCESS
S60
SAGA_DEBUG
SAMPLES_PER_SEC_8000
SCALER_PROFILE
SCENE_DEBUG
SCI_CONSOLE
SCI_DEBUG_PARSE_TREE_AUGMENTATION
SCI_VERBOSE_RESMAN
SCRIPT_DEBUG
SCRIPT_TEST
SCUMMVM_DONT_DEFINE_TYPES
SCUMMVM_IPC_INCLUDE
SCUMMVM_SVN_REVISION
SCUMM_BIG_ENDIAN
SCUMM_IMUSE_INTERNAL
SKIP_INTRO
SLOW_RINCE_DOWN
SMALL_SCREEN_DEVICE
SNPRINTF_LONGLONG_SUPPORT
SOUND_CROP_CHANNELS
STREAM_AUDIO_FROM_DISK
STRINGBUFLEN
SWORD2_DEBUG
SYSEX_CALLBACK_FUNCTION
TEST_MEMORY_COPY
TIMIDITY_LOW_DELAY
UIQ
UNICODE
UNIX
UNZ_BUFSIZE
UNZ_MAXFILENAMEINZIP
UPGRADE_ALL_TARGETS_HACK
USERSPACE_ONLY
USE_HASHMAP_MEMORY_POOL
VM_DEBUG_SEND
WAVE_PRECISION
WIN32
WIN32_PLATFORM_WFSP
WRAP_MALLOC
__DC__
__DS__
__FRAMFS_SAVE_MANAGER__
__MINGW32CE__
__MMX__
__N64_PORTDEFS__
__N64__
__OS2__
__PAKFS_SAVE_MANAGER__
__PLAYSTATION2__
__PS2FILE_IO__
__PS2_DEBUG__
__PS2_FILE_DEBUG__
__PS2_FILE_SEMA__
__PSP_DEBUG_FUNCS__
__PSP_DEBUG_PRINT__
__PSP_PRINT_TO_FILE__
__PSP__
__sgi
__SSE__
__SYMBIAN32__
__USE_INLINE__
__USE_LIBMC__
__WII__