15 lines
338 B
C++
15 lines
338 B
C++
#pragma once
|
|
|
|
#include <string_view>
|
|
|
|
namespace izo {
|
|
|
|
using crash_callback = void (*)(const char* reason, void* user_data);
|
|
|
|
void install_crash_handler(crash_callback callback, void* user_data = nullptr);
|
|
bool is_debugger_attached() noexcept;
|
|
void debug_break() noexcept;
|
|
void debug_output(std::string_view message);
|
|
|
|
} // namespace izo
|