Copyright Matus Chochlik. Distributed under the Boost Software License, Version 1.0. See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
#include <iostream>
auto main() -> int {
std::cout << "running on valgrind" << std::endl;
} else if(!on_vg) {
std::cout << "not running on valgrind" << std::endl;
} else {
std::cout << "maybe running on valgrind" << std::endl;
}
return 0;
}
Common code is placed in this namespace.
Definition: eagine.hpp:21
static constexpr auto running_on_valgrind() noexcept -> tribool
Indicates if the current process runs on top of valgrind.
Definition: valgrind.hpp:30