Always build with Valgrind support. Always use the bundled Valgrind header.

This was SVN commit r7397.
This commit is contained in:
Ykkrosh
2010-03-26 10:31:47 +00:00
parent af6b35dd6d
commit 9b6326f124
4 changed files with 11 additions and 15 deletions
+1 -5
View File
@@ -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: