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__)
8extern "C" __attribute__((weak)) void __llvm_profile_reset_counters(void);
9extern "C" __attribute__((weak)) void __gcov_reset(void);
10
11// Fallback implementations
12extern "C" __attribute__((weak)) void __llvm_profile_reset_counters(void) {}
13extern "C" __attribute__((weak)) void __gcov_reset(void) {}
14
16 // These will call the real ones if available, or our dummies if not
17 __llvm_profile_reset_counters();
18 __gcov_reset();
19}
20#else
22#endif
void ResetCoverageCounters()
Definition: coverage.cpp:21