mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-13 20:55:00 +00:00
- config.h: massive improvements, much clearer.
- tentatively activate PCH if gcc > 3.4. remove XP_ defines (which were undocumented; now in scripting/spidermonkey.h) - rename some config defines - move sysdep/debug.h to lib/debug.h (it's portable; was wrong all along) - grouped all debug heap related stuff to debug.h:debug_heap_* - sysdep: fix circular include issue with debug.h This was SVN commit r2427.
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "lib.h"
|
||||
#include "sysdep/debug.h"
|
||||
#include "debug.h"
|
||||
#include "nommgr.h"
|
||||
// some functions here are called from within mmgr; disable its hooks
|
||||
// so that our allocations don't cause infinite recursion.
|
||||
@@ -507,8 +507,8 @@ ErrorReaction display_error(const wchar_t* description, int flags,
|
||||
{
|
||||
// disable memory-leak reporting to avoid a flood of warnings
|
||||
// (lots of stuff will leak since we exit abnormally).
|
||||
debug_disable_leak_reporting();
|
||||
#ifdef HAVE_MMGR
|
||||
debug_heap_enable(DEBUG_HEAP_NONE);
|
||||
#ifdef CONFIG_USE_MMGR
|
||||
mmgr_set_options(0);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user