7#include <bitcoin-build-config.h>
14#include <source_location>
20 return strprintf(
"Internal bug detected: %s\n%s:%d (%s)\n"
22 "Please report this issue here: %s\n",
23 msg,
loc.file_name(),
loc.line(),
loc.function_name(),
bool g_detail_test_only_CheckFailuresAreExceptionsNotAborts
std::atomic< bool > g_enable_dynamic_fuzz_determinism
std::string StrFormatInternalBug(std::string_view msg, const std::source_location &loc)
void assertion_fail(const std::source_location &loc, std::string_view assertion)
Internal helper.
NonFatalCheckError(std::string_view msg, const std::source_location &loc)
std::string FormatFullVersion()
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.