10#include "../macros.hpp"
12hi_export_module(hikogui.utils.debugger : utils);
14hi_export
namespace hi {
inline namespace v1 {
18inline std::atomic<char const *> debug_message =
nullptr;
22inline void set_debug_message(
char const *str)
noexcept
24 detail::debug_message.store(str, std::memory_order::relaxed);
27[[nodiscard]]
inline bool has_debug_message() noexcept
29 return detail::debug_message.load(std::memory_order::relaxed) !=
nullptr;
32[[nodiscard]]
inline char const *get_debug_message() noexcept
34 return detail::debug_message.exchange(
nullptr, std::memory_order::relaxed);
The HikoGUI namespace.
Definition array_generic.hpp:21
The HikoGUI API version 1.
Definition array_generic.hpp:22