Bitcoin Core 29.99.0
P2P Digital Currency
coverage.cpp
Go to the documentation of this file.
1// Copyright (c) 2025-present The Bitcoin Core developers
2// Distributed under the MIT software license, see the accompanying
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
6
7#if defined(__clang__) && defined(__linux__)
8extern "C" void __llvm_profile_reset_counters(void) __attribute__((weak));
9extern "C" void __gcov_reset(void) __attribute__((weak));
10
12{
13 if (__llvm_profile_reset_counters) {
14 __llvm_profile_reset_counters();
15 }
16
17 if (__gcov_reset) {
18 __gcov_reset();
19 }
20}
21#else
23#endif
void ResetCoverageCounters()
Definition: coverage.cpp:22