Function inValgrind [src]

Detect whether the program is being executed in the Valgrind virtual machine. When Valgrind integrations are disabled, this returns comptime-known false. Otherwise, the result is runtime-known.

Prototype

pub inline fn inValgrind() bool

Source

pub inline fn inValgrind() bool { if (@inComptime()) return false; if (!builtin.valgrind_support) return false; return std.valgrind.runningOnValgrind() > 0; }