Contents

SushiEngine::Assertion

install_assertion_handler

void install_assertion_handler(IAssertionHandler *handler) noexcept

Parameters

NameType
handlerIAssertionHandler *

Description

Makes handler the one active_assertion_handler() returns; nullptr restores the default.

Precondition

handler outlives its installation; uninstall it, on the same thread that installed it, before any other thread that might still be failing a check is destroyed.