mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 21:46:09 +00:00
Always build with Valgrind support. Always use the bundled Valgrind header.
This was SVN commit r7397.
This commit is contained in:
@@ -30,9 +30,7 @@
|
||||
#include <boost/preprocessor/punctuation/comma_if.hpp>
|
||||
#include <boost/preprocessor/repetition/repeat.hpp>
|
||||
|
||||
#ifdef USE_VALGRIND
|
||||
# include <valgrind/valgrind.h>
|
||||
#endif
|
||||
#include "valgrind.h"
|
||||
|
||||
const int RUNTIME_SIZE = 4 * 1024 * 1024; // TODO: how much memory is needed?
|
||||
const int STACK_CHUNK_SIZE = 8192;
|
||||
@@ -77,10 +75,8 @@ void ErrorReporter(JSContext* UNUSED(cx), const char* message, JSErrorReport* re
|
||||
LOGWARNING(L"%hs", msg.str().c_str());
|
||||
else
|
||||
LOGERROR(L"%hs", msg.str().c_str());
|
||||
#ifdef USE_VALGRIND
|
||||
// When running under Valgrind, print more information in the error message
|
||||
VALGRIND_PRINTF_BACKTRACE("->");
|
||||
#endif
|
||||
}
|
||||
|
||||
// Functions in the global namespace:
|
||||
|
||||
Reference in New Issue
Block a user