Stroika Library 3.0d25
 
Loading...
Searching...
No Matches
Valgrind.h File Reference

Support for running under valgrind memcheck - the only valgrind tool Stroika supports (see Documentation/Debugging.md) More...

#include "Stroika/Foundation/StroikaPreComp.h"
#include "Valgrind.inl"

Go to the source code of this file.

Functions

bool IsRunningUnderValgrind ()
 

Detailed Description

Support for running under valgrind memcheck - the only valgrind tool Stroika supports (see Documentation/Debugging.md)

Note
Code-Status: Beta

Memcheck needs nothing from here to work. This provides IsRunningUnderValgrind (), and - when configured with –valgrind enable, which defines qStroika_FeatureSupported_Valgrind - memcheck's client requests (<valgrind/memcheck.h>). It includes nothing else, so it is cheap to include anywhere.

See also
https://github.com/svn2github/valgrind
https://sourceforge.net/u/lluct/me722-cm/ci/master/tree/external/valgrind/main/memcheck/memcheck.h
https://lists.sourceforge.net/lists/listinfo/valgrind-developers

TODO:

Definition in file Valgrind.h.

Function Documentation

◆ IsRunningUnderValgrind()

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).

Note
This can be called whether or not qStroika_FeatureSupported_Valgrind is defined, but it always returns false if qStroika_FeatureSupported_Valgrind is not defined.