#include "kapi/cpu.hpp" namespace kapi::cpu { namespace { struct null_exception_handler : exception_handler { auto handle(exception const &) -> bool override { return false; } } static constinit default_exception_handler; exception_handler * current_handler = &default_exception_handler; } // namespace auto get_exception_handler() -> exception_handler & { return *current_handler; } auto set_exception_handler(exception_handler & handler) -> void { current_handler = &handler; } } // namespace kapi::cpu