tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
breakpoint_if_debugging.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2// SPDX-FileCopyrightText: Copyright (C) 2024 Tobias Hienzsch
3
4#ifndef TETL_DEBUGGING_BREAKPOINT_IF_DEBUGGING_HPP
5#define TETL_DEBUGGING_BREAKPOINT_IF_DEBUGGING_HPP
6
7#include <etl/_debugging/breakpoint.hpp>
8#include <etl/_debugging/is_debugger_present.hpp>
9
10namespace etl {
11
12/// Conditional breakpoint: attempts to temporarily halt the execution of the
13/// program and transfer control to the debugger if it were able to determine
14/// that the debugger is present. Acts as a no-op otherwise.
15/// \ingroup debugging
16inline auto breakpoint_if_debugging() noexcept -> void
17{
20 }
21}
22
23} // namespace etl
24
25#endif // TETL_DEBUGGING_BREAKPOINT_IF_DEBUGGING_HPP
auto is_debugger_present() noexcept -> bool
Attempts to determine if the program is being executed with debugger present.
Definition is_debugger_present.hpp:13
auto breakpoint() noexcept -> void
Unconditional breakpoint: attempts to temporarily halt the execution of the program and transfer cont...
Definition breakpoint.hpp:14
auto breakpoint_if_debugging() noexcept -> void
Conditional breakpoint: attempts to temporarily halt the execution of the program and transfer contro...
Definition breakpoint_if_debugging.hpp:16
Definition adjacent_find.hpp:9