1 {{+bindTo:partials.standard_nacl_api}}
2 <h1>logging.h File Reference
</h1>
4 {{- dummy div to appease doxygen -}}
6 <!-- Generated by Doxygen 1.7.6.1 -->
11 <div class=
"contents">
12 <div class=
"textblock"><div class=
"dynheader">
13 Include dependency graph for logging.h:
</div>
14 <div class=
"dyncontent">
15 <div class=
"center"><img src=
"logging_8h__incl.png" border=
"0" usemap=
"#logging_8h" alt=
"" /></div>
16 <map name=
"logging_8h" id=
"logging_8h">
20 Defines
</h2><table class=
"memberdecls">
22 <tr><td class=
"memItemLeft" align=
"right" valign=
"top">#define
 </td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"logging_8h.html#a5cb259e0fd1a8c0c64fbc891bc273417">PP_DCHECK
</a>(a)
   assert(a)
</td></tr>
23 <tr><td class=
"memItemLeft" align=
"right" valign=
"top">#define
 </td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"logging_8h.html#a1c536418e751c9bda850cd2bc919e0ca">PP_NOTREACHED
</a>()
   assert(false)
</td></tr>
25 <hr /><a name=
"details" id=
"details"></a><h2>Detailed Description
</h2>
26 <div class=
"textblock"><p>This file defines two macro asserts.
</p>
27 </div><hr /><h2>Define Documentation
</h2>
28 <a class=
"anchor" id=
"a5cb259e0fd1a8c0c64fbc891bc273417"></a><!-- doxytag: member="logging.h::PP_DCHECK" ref="a5cb259e0fd1a8c0c64fbc891bc273417" args="(a)" -->
30 <div class=
"memproto">
31 <table class=
"memname">
33 <td class=
"memname">#define
<a class=
"el" href=
"logging_8h.html#a5cb259e0fd1a8c0c64fbc891bc273417">PP_DCHECK
</a></td>
35 <td class=
"paramtype"> </td>
36 <td class=
"paramname">a
</td><td>)
</td>
37 <td>   assert(a)
</td>
42 <p>This macro asserts that 'a' evaluates to true.
</p>
43 <p>In debug mode, this macro will crash the program if the assertion evaluates to false. It (typically) has no effect in release mode.
</p>
46 <a class=
"anchor" id=
"a1c536418e751c9bda850cd2bc919e0ca"></a><!-- doxytag: member="logging.h::PP_NOTREACHED" ref="a1c536418e751c9bda850cd2bc919e0ca" args="()" -->
48 <div class=
"memproto">
49 <table class=
"memname">
51 <td class=
"memname">#define
<a class=
"el" href=
"logging_8h.html#a1c536418e751c9bda850cd2bc919e0ca">PP_NOTREACHED
</a></td>
53 <td class=
"paramname"></td><td>)
</td>
54 <td>   assert(false)
</td>
59 <p>This macro asserts false in debug builds.
</p>
60 <p>It's used in code paths that you don't expect to execute.
</p>
61 <p><b>Example:
</b></p>
62 <div class=
"fragment"><pre class=
"fragment"> <span class=
"keywordflow">if
</span> (!pointer) {
63 <span class=
"comment">// Pointer wasn
't valid! This shouldn
't happen.
</span>
64 <a class=
"code" href=
"logging_8h.html#a1c536418e751c9bda850cd2bc919e0ca" title=
"This macro asserts false in debug builds.">PP_NOTREACHED
</a>();
65 <span class=
"keywordflow">return
</span>;
67 <span class=
"comment">// Do stuff to the pointer, since you know it
's valid.
</span>
68 pointer-
>DoSomething();
72 </div><!-- contents -->
74 {{/partials.standard_nacl_api}}