Skip to content
Bitcoin Roots

v29.4-roots.1 · Commit 2: [PATCH 02/13] runtime: preserve shared operator controls

src/util/check.h

Before: src/util/check.h · After: src/util/check.h

File metadata
index efc78915a9e74dbb3b337aa8c68642b1347c25a2..3cc047e88ec9af383fa21a61513db6f46a197be0 100644

Download original patch · Release notes

Diff rows 1–12 of 12. Line numbers refer to the original before/after files.

+ Added− RemovedUnmarked lines are context.

Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.

src/util/check.h CHANGED
@@ -21,6 +21,12 @@ constexpr bool G_FUZZING{
21
  #endif
22
  };
23
 
 
 
 
 
 
 
24
  std::string StrFormatInternalBug(std::string_view msg, std::string_view file, int line, std::string_view func);
25
 
26
  class NonFatalCheckError : public std::runtime_error
 
21
  #endif
22
  };
23
 
24
+ extern bool g_detail_test_only_CheckFailuresAreExceptionsNotAborts;
25
+ struct test_only_CheckFailuresAreExceptionsNotAborts {
26
+ test_only_CheckFailuresAreExceptionsNotAborts() { g_detail_test_only_CheckFailuresAreExceptionsNotAborts = true; };
27
+ ~test_only_CheckFailuresAreExceptionsNotAborts() { g_detail_test_only_CheckFailuresAreExceptionsNotAborts = false; };
28
+ };
29
+
30
  std::string StrFormatInternalBug(std::string_view msg, std::string_view file, int line, std::string_view func);
31
 
32
  class NonFatalCheckError : public std::runtime_error