nn::dbg::SetBreakHandler Function

Syntax

#include <nn/dbg.h>

void SetBreakHandler(
     BreakHandler handler
);

Parameters

Name Description
in handler Handler to set.

Return Values

None.

Description

Sets the user handler for when ASSERT fails or PANIC occurs.

Sets the user handler to call before stopping the program when ASSERT fails or a PANIC occurs.

The settings are released before the handler is called. In other words, the handler is not called even if an ASSERT fails or a PANIC occurs in the handler. This function is not limited to the case when the handler is reset from within the handler. Furthermore, there is no guarantee that the handler is called from only a single thread if PANIC occurs simultaneously in multiple threads.

As it does when no handler is set, the program stops when it returns from the handler.

Revision History

2012/06/06
Initial version.

CONFIDENTIAL