forked from 0ad/0ad
parent
870fe8bfe5
commit
45fa351feb
@ -30,15 +30,7 @@
|
|||||||
#include <boost/preprocessor/punctuation/comma_if.hpp>
|
#include <boost/preprocessor/punctuation/comma_if.hpp>
|
||||||
#include <boost/preprocessor/repetition/repeat.hpp>
|
#include <boost/preprocessor/repetition/repeat.hpp>
|
||||||
|
|
||||||
#if OS_LINUX
|
|
||||||
# define HAVE_VALGRIND 1
|
|
||||||
#else
|
|
||||||
# define HAVE_VALGRIND 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if HAVE_VALGRIND
|
|
||||||
#include "valgrind.h"
|
#include "valgrind.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
const int RUNTIME_SIZE = 4 * 1024 * 1024; // TODO: how much memory is needed?
|
const int RUNTIME_SIZE = 4 * 1024 * 1024; // TODO: how much memory is needed?
|
||||||
const int STACK_CHUNK_SIZE = 8192;
|
const int STACK_CHUNK_SIZE = 8192;
|
||||||
@ -84,9 +76,7 @@ void ErrorReporter(JSContext* UNUSED(cx), const char* message, JSErrorReport* re
|
|||||||
else
|
else
|
||||||
LOGERROR(L"%hs", msg.str().c_str());
|
LOGERROR(L"%hs", msg.str().c_str());
|
||||||
// When running under Valgrind, print more information in the error message
|
// When running under Valgrind, print more information in the error message
|
||||||
#if HAVE_VALGRIND
|
|
||||||
VALGRIND_PRINTF_BACKTRACE("->");
|
VALGRIND_PRINTF_BACKTRACE("->");
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Functions in the global namespace:
|
// Functions in the global namespace:
|
||||||
|
Loading…
Reference in New Issue
Block a user