HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
debugger.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
5#pragma once
6
7#include "architecture.hpp"
8#include <format>
9
10namespace hi::inline v1 {
11
12void prepare_debug_break() noexcept;
13
14#if HI_OPERATING_SYSTEM == HI_OS_WINDOWS
15
16#define hi_debug_break() \
17 ::hi::prepare_debug_break(); \
18 __debugbreak()
19
20#else
21#error Missing implementation of hi_debug_break().
22#endif
23
24#define hi_debug_abort() \
25 hi_debug_break(); \
26 std::terminate()
27
28} // namespace hi::inline v1
Functions and macros for handling architectural difference between compilers, CPUs and operating syst...
DOXYGEN BUG.
Definition algorithm.hpp:15