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