aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/diagnostics.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-02-02 08:59:22 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-02-02 09:19:19 +0200
commitd930b5205e277b522c2a7fe4a7c0e08c5a8afee1 (patch)
tree76d76d3ab31a1801e7992ba61cce1a0218cc672e /libbuild2/diagnostics.cxx
parent793e39564b25acc6283d1fd5a842c9799f1efdbe (diff)
Redo diagnostics without operator<< in namespace std
Diffstat (limited to 'libbuild2/diagnostics.cxx')
-rw-r--r--libbuild2/diagnostics.cxx24
1 files changed, 0 insertions, 24 deletions
diff --git a/libbuild2/diagnostics.cxx b/libbuild2/diagnostics.cxx
index 4d2d7ce..a2a8444 100644
--- a/libbuild2/diagnostics.cxx
+++ b/libbuild2/diagnostics.cxx
@@ -77,30 +77,6 @@ namespace build2
dr << butl::process_args {args, n};
}
- // Diagnostics stack.
- //
- static
-#ifdef __cpp_thread_local
- thread_local
-#else
- __thread
-#endif
- const diag_frame* diag_frame_stack = nullptr;
-
- const diag_frame* diag_frame::
- stack () noexcept
- {
- return diag_frame_stack;
- }
-
- const diag_frame* diag_frame::
- stack (const diag_frame* f) noexcept
- {
- const diag_frame* r (diag_frame_stack);
- diag_frame_stack = f;
- return r;
- }
-
// Diagnostic facility, project specifics.
//