janwas
9269be9ee3
(see http://www.wildfiregames.com/forum/index.php?showtopic=11450&hl= ) clean up debug module . no longer include platform-dependent header (-> less rebuilds) . DISPLAY_ERROR -> DEBUG_DISPLAY_ERROR . parts of config.h that don't affect all files moved to config.2 (-> fewer full rebuilds) . remove creaky symbol cache (no longer needed for mmgr) . remove TLS thread naming stuff (can use debugger's thread window instead; no need for platform independence there) wdbg: remove thread suspension and breakpoint APIs (not needed) acpi: fix: u64 -> uintptr_t wutil: fix WinScopedLock, use that instead of direct lock() functions misc: . get rid of SAFE_STRCPY, replace with strcpy_s . remove _getcwd (shouldn't be used) This was SVN commit r5563.
54 lines
1.6 KiB
C
54 lines
1.6 KiB
C
/**
|
|
* =========================================================================
|
|
* File : config.h
|
|
* Project : 0 A.D.
|
|
* Description : compile-time configuration for the entire project
|
|
* =========================================================================
|
|
*/
|
|
|
|
// license: GPL; see lib/license.txt
|
|
|
|
#ifndef INCLUDED_CONFIG
|
|
#define INCLUDED_CONFIG
|
|
|
|
// notes:
|
|
// - this file is included in the PCH and thus affects the entire project.
|
|
// to avoid unnecessary full rebuilds, place settings of more limited
|
|
// applicability in config2.h and explicitly include that header.
|
|
// - config macros are always defined; their values (1 or 0) are tested
|
|
// with #if instead of #ifdef. this protects against typos by at least
|
|
// causing a warning if the tested macro is undefined.
|
|
// - allow override via compiler settings by checking #ifndef.
|
|
|
|
// pre-compiled headers
|
|
#ifndef CONFIG_ENABLE_PCH
|
|
# define CONFIG_ENABLE_PCH 1 // improve build performance
|
|
#endif
|
|
|
|
// frame pointers
|
|
#ifndef CONFIG_OMIT_FP
|
|
# ifdef NDEBUG
|
|
# define CONFIG_OMIT_FP 1 // improve performance
|
|
# else
|
|
# define CONFIG_OMIT_FP 0 // enable use of ia32's fast stack walk
|
|
# endif
|
|
#endif
|
|
|
|
// try to prevent any exceptions from being thrown - even by the C++
|
|
// standard library. useful only for performance tests.
|
|
#ifndef CONFIG_DISABLE_EXCEPTIONS
|
|
# define CONFIG_DISABLE_EXCEPTIONS 0
|
|
#endif
|
|
|
|
// enable additional debug checks (very slow).
|
|
#ifndef CONFIG_PARANOIA
|
|
# define CONFIG_PARANOIA 0
|
|
#endif
|
|
|
|
// final release; disables some safety checks.
|
|
#ifndef CONFIG_FINAL
|
|
# define CONFIG_FINAL 0
|
|
#endif
|
|
|
|
#endif // #ifndef INCLUDED_CONFIG
|