nn::dbg::BreakHandler Type

Syntax

#include <nn/dbg.h>

typedef void(* nn::dbg::BreakHandler)(BreakReason reason, Result *pResult, const char *filename, int lineno, const char *fmt, std::va_list args);

Parameters

Name Description
in reason The reason the program stopped.
in pResult The associated Result value. The value can be NULL.
in filename The associated filename. The value can be NULL.
in lineno The associated line number.
in fmt The associated message. The value can be NULL.
in args The parameter that corresponds to fmt. When fmt is NULL, do not reference it because an undefined value is passed.

Description

User handler type for when ASSERT fails or PANIC occurs.

Represents the callback function that was set with SetBreakHandler.

The reason argument can always be used, but the other arguments pass appropriate values only when they can be used.

The handler is called with the thread where the ASSERT failed or the PANIC occured. Note that handler can be called at various times from any thread.

Revision History

2012/06/06
Initial version.

CONFIDENTIAL