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(),
34void assertion_fail(
const std::source_location& loc, std::string_view assertion)
39 auto str =
strprintf(
"%s:%s %s: Assertion `%s' failed.\n", loc.file_name(), loc.line(), loc.function_name(), assertion);
40 fwrite(str.data(), 1, str.size(), stderr);
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()