7#include <bitcoin-build-config.h>
19 return strprintf(
"Internal bug detected: %s\n%s:%d (%s)\n"
21 "Please report this issue here: %s\n",
30void assertion_fail(std::string_view file,
int line, std::string_view func, std::string_view assertion)
32 auto str =
strprintf(
"%s:%s %s: Assertion `%s' failed.\n", file, line, func, assertion);
33 fwrite(str.data(), 1, str.size(), stderr);
std::string StrFormatInternalBug(std::string_view msg, std::string_view file, int line, std::string_view func)
void assertion_fail(std::string_view file, int line, std::string_view func, std::string_view assertion)
Helper for Assert()
NonFatalCheckError(std::string_view msg, std::string_view file, int line, std::string_view func)
std::string FormatFullVersion()