HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
debugger_intf.hpp
1// Copyright Take Vos 2022.
2// Distributed under the Boost Software License, Version 1.0.
3// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
4
8#pragma once
9
10#include "../macros.hpp"
11#include <format>
12#include <iostream>
13
14hi_export_module(hikogui.utility.debugger : intf);
15
16hi_export namespace hi { inline namespace v1 {
17
21
30
41{
43 std::cerr << std::format("Abnormal termination.\n{}\n", msg);
44 debug_message.store(msg, std::memory_order::relaxed);
46 }
47}
48
49}} // namespace hi::v1
DOXYGEN BUG.
Definition algorithm.hpp:16
geometry/margins.hpp
Definition lookahead_iterator.hpp:5
bool prepare_debug_break() noexcept
Prepare for breaking in the debugger.
Definition debugger_win32_impl.hpp:21
std::atomic< char const * > debug_message
Message to show when the application is terminated because of a debug_abort.
Definition debugger_intf.hpp:20
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:377
T terminate(T... args)