aboutsummaryrefslogtreecommitdiff
path: root/doc/oscl_html/oscl__assert_8h.html
blob: d9d22553d0f07e03da9c8c9e2582ffea7d9d9efd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>oscl: oscl_assert.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>oscl_assert.h File Reference</h1>
<p>The file <a class="el" href="oscl__assert_8h.html" title="The file oscl_assert.h provides an OSCL_ASSERT macro to document assumptions and...">oscl_assert.h</a> provides an OSCL_ASSERT macro to document assumptions and test them during development.  
<a href="#_details">More...</a></p>
<code>#include &quot;<a class="el" href="oscl__assert_8h_source.html">oscl_base.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="osclconfig_8h_source.html">osclconfig.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="osclconfig__check_8h_source.html">osclconfig_check.h</a>&quot;</code><br/>
<code>#include &quot;pv_config.h&quot;</code><br/>

<p><a href="oscl__assert_8h_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__osclbase.html#gaf7c21e5b6e4fee4247225dd31f89c8ca">OSCL_ASSERT</a>(_expr)&nbsp;&nbsp;&nbsp;((_expr)?((void)0):OSCL_Assert(# _expr,__FILE__,__LINE__))</td></tr>
<tr><td colspan="2"><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__osclbase.html#ga97188d2c6248adc3fef36f483696a332">_OSCL_Abort</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This function terminates the current process abnormally.  <a href="group__osclbase.html#ga97188d2c6248adc3fef36f483696a332"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_IMPORT_REF void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__osclbase.html#ga89f94c4160d32bcfc94fc215239ec5c7">OSCL_Assert</a> (const char *expr, const char *filename, int line_number)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">OSCL_ASSERT macro evaluates an expression and when the result is false, prints a diagnostic message and aborts the program.  <a href="group__osclbase.html#ga89f94c4160d32bcfc94fc215239ec5c7"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>The file <a class="el" href="oscl__assert_8h.html" title="The file oscl_assert.h provides an OSCL_ASSERT macro to document assumptions and...">oscl_assert.h</a> provides an OSCL_ASSERT macro to document assumptions and test them during development. </p>
</div>
<hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small>
<address style="align: left;"><small>Posting Version: CORE_9.005.1.1 </small>
</small></address>
</body>
</html>