1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <meta http-equiv="Content-Style-Type" content="text/css" />
6    <link rel="stylesheet" href="../../css/manpage.css" type="text/css" />
7    <title>BreakHandler</title>
8  </head>
9  <body>
10    <h1><CODE><a href="../../nn/Overview.html">nn</a>::<a href="../../nn/dbg/Overview.html">dbg</a>::BreakHandler</CODE> Type</h1>
11    <h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">#include &lt;nn/dbg.h&gt;
14
15typedef void(* nn::dbg::BreakHandler)(BreakReason reason, Result *pResult, const char *filename, int lineno, const char *fmt, std::va_list args);</pre>
16    </div>
17    <h2>Arguments</h2>
18    <div class="section">
19      <table class="arguments">
20        <thead>
21          <tr>
22            <td width="15" />
23            <th>Name</th>
24            <td>Description</td>
25          </tr>
26        </thead>
27        <tr>
28          <td>in</td>
29          <th><CODE>reason</CODE></th>
30          <td>The reason the program stopped.</td>
31        </tr>
32        <tr>
33          <td>in</td>
34          <th><CODE>pResult</CODE></th>
35          <td>The associated <CODE><a href="../../nn/Result/Overview.html">Result</a></CODE> value. The value can be <CODE>NULL</CODE>.</td>
36        </tr>
37        <tr>
38          <td>in</td>
39          <th><CODE>filename</CODE></th>
40          <td>The associated filename. The value can be <CODE>NULL</CODE>.</td>
41        </tr>
42        <tr>
43          <td>in</td>
44          <th><CODE>lineno</CODE></th>
45          <td>The associated line number.</td>
46        </tr>
47        <tr>
48          <td>in</td>
49          <th><CODE>fmt</CODE></th>
50          <td>The associated message. The value can be <CODE>NULL</CODE>.</td>
51        </tr>
52        <tr>
53          <td>in</td>
54          <th><CODE>args</CODE></th>
55          <td>The parameter that corresponds to <CODE>fmt</CODE>. When <CODE>fmt</CODE> is <CODE>NULL</CODE>, do not reference it because an undefined value is passed.</td>
56        </tr> </table>
57    </div>
58    <h2>Description</h2>
59    <div class="section">
60      <p>User handler type for when ASSERT fails or PANIC occurs.</p><p>Represents the callback function that was set with <a href="../../nn/dbg/SetBreakHandler.html"><CODE>SetBreakHandler</CODE></a>.</p><p>The <CODE>reason</CODE> argument can always be used, but the other arguments pass appropriate values only when they can be used.</p><p>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.</p><!-- write here --></div>
61    <h2>Revision History</h2>
62    <div class="section">
63      <dl class="history">
64        <dt>2012/06/06</dt>
65        <dd>Initial version.<br />
66        </dd>
67      </dl>
68    </div>
69  <hr><p>CONFIDENTIAL</p></body>
70</html>