Go to the documentation of this file. 1 #ifndef EAGINE_INTEROP_VALGRIND_HPP
9 #define EAGINE_INTEROP_VALGRIND_HPP
11 #include "../tribool.hpp"
13 #if defined(__GNUC__) || defined(__clang__)
15 #if __has_include(<valgrind/valgrind.h>)
17 #include <valgrind/valgrind.h>
23 #if defined(RUNNING_ON_VALGRIND)
25 return bool(RUNNING_ON_VALGRIND);
37 #endif // EAGINE_INTEROP_VALGRIND_HPP
Common code is placed in this namespace.
Definition: eagine.hpp:21
constexpr static const indeterminate_t indeterminate
Constant representing unspecified tribool value.
Definition: tribool.hpp:24
static constexpr auto running_on_valgrind() noexcept -> tribool
Indicates if the current process runs on top of valgrind.
Definition: valgrind.hpp:30