Include this file VERY EARLY ON - before including stuff like <cstdio> - to allow use of Valgrind (some features) More...
#include "Stroika/Foundation/StroikaPreComp.h"
#include "Valgrind.inl"
Go to the source code of this file.
Functions | |
bool | IsRunningUnderValgrind () |
Include this file VERY EARLY ON - before including stuff like <cstdio> - to allow use of Valgrind (some features)
Note - this is NOT required for use of valgrind memcheck() - at least as of v2.0a145.
This module is VERY careful not to include unneded files - and includes just the minimal required to make the valgrind family of tools work IFF you preconfigure (./configure) qStroika_FeatureSupported_Valgrind to be a predefined C++ macro define.
TODO:
Definition in file Valgrind.h.
bool IsRunningUnderValgrind | ( | ) |
Use IsRunningUnderValgrind () to test if we are running under valgrind. This often uses MUCH more memory and runs much slower (details depend on if running under memcheck or which we blurr, so this isn't perfect).