<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.16"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>UbixOS: include/assert.h File Reference</title> <link href="../../tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="../../jquery.js"></script> <script type="text/javascript" src="../../dynsections.js"></script> <link href="../../navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="../../resize.js"></script> <script type="text/javascript" src="../../navtreedata.js"></script> <script type="text/javascript" src="../../navtree.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(initResizable); /* @license-end */</script> <link href="../../doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">UbixOS  <span id="projectnumber">2.0</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.16 --> <script type="text/javascript" src="../../menudata.js"></script> <script type="text/javascript" src="../../menu.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(function() { initMenu('../../',false,false,'search.php','Search'); }); /* @license-end */</script> <div id="main-nav"></div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(function(){initNavTree('dc/da7/assert_8h.html','../../');}); /* @license-end */ </script> <div id="doc-content"> <div class="header"> <div class="summary"> <a href="#define-members">Macros</a> | <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">assert.h File Reference</div> </div> </div><!--header--> <div class="contents"> <div class="textblock"><div class="dynheader"> This graph shows which files directly or indirectly include this file:</div> <div class="dyncontent"> <div class="center"><img src="../../d8/d61/assert_8h__dep__incl.png" border="0" usemap="#include_2assert_8hdep" alt=""/></div> <map name="include_2assert_8hdep" id="include_2assert_8hdep"> <area shape="rect" title=" " alt="" coords="1949,5,2064,32"/> <area shape="rect" href="../../dd/d80/armv6_2bioscall_8c.html" title=" " alt="" coords="5,80,149,107"/> <area shape="rect" href="../../df/dc9/exec_8c.html" title=" " alt="" coords="173,80,301,107"/> <area shape="rect" href="../../d4/d43/armv6_2fork_8c.html" title=" " alt="" coords="326,80,447,107"/> <area shape="rect" href="../../d3/d02/armv6_2sched_8c.html" title=" " alt="" coords="471,80,606,107"/> <area shape="rect" href="../../d8/d4c/i386_2bioscall_8c.html" title=" " alt="" coords="630,80,765,107"/> <area shape="rect" href="../../d9/d48/i386_2fork_8c.html" title=" " alt="" coords="789,80,899,107"/> <area shape="rect" href="../../de/d18/i386__exec_8c.html" title=" " alt="" coords="924,80,1073,107"/> <area shape="rect" href="../../d9/d83/i386_2sched_8c.html" title=" " alt="" coords="1097,80,1223,107"/> <area shape="rect" href="../../d3/d2e/fat_8c.html" title=" " alt="" coords="1247,80,1326,107"/> <area shape="rect" href="../../d2/de9/fat__string_8c.html" title=" " alt="" coords="1350,80,1469,107"/> <area shape="rect" href="../../db/dff/dirCache_8c.html" title=" " alt="" coords="1493,80,1629,107"/> <area shape="rect" href="../../d2/d34/ubixfs_8c.html" title=" " alt="" coords="1654,80,1773,107"/> <area shape="rect" href="../../d6/d13/file_8c.html" title=" " alt="" coords="1797,80,1880,107"/> <area shape="rect" href="../../dd/d07/ne2k_8c.html" title=" " alt="" coords="1904,80,1987,107"/> <area shape="rect" href="../../d2/d3f/descrip_8c.html" title=" " alt="" coords="2011,80,2125,107"/> <area shape="rect" href="../../d3/d0a/gen__calls_8c.html" title=" " alt="" coords="2150,80,2277,107"/> <area shape="rect" href="../../dd/d88/kern__sig_8c.html" title=" " alt="" coords="2301,80,2422,107"/> <area shape="rect" href="../../d0/def/kern__sysctl_8c.html" title=" " alt="" coords="2447,80,2585,107"/> <area shape="rect" href="../../d8/dd5/ld_8c.html" title=" " alt="" coords="2609,80,2692,107"/> <area shape="rect" href="../../d1/d47/pipe_8c.html" title=" " alt="" coords="2716,80,2812,107"/> <area shape="rect" href="../../d8/d36/signal_8c.html" title=" " alt="" coords="2836,80,2943,107"/> <area shape="rect" href="../../df/d73/time_8c.html" title=" " alt="" coords="2967,80,3065,107"/> <area shape="rect" href="../../d4/dda/kmod_8c.html" title=" " alt="" coords="3089,80,3197,107"/> <area shape="rect" href="../../d6/da0/assert_8c.html" title=" " alt="" coords="3221,80,3307,107"/> <area shape="rect" href="../../d3/d1a/kmalloc_8c.html" title=" " alt="" coords="3331,80,3426,107"/> <area shape="rect" href="../../d5/d96/device_8c.html" title=" " alt="" coords="3450,80,3545,107"/> <area shape="rect" href="../../de/d38/paging_8c.html" title=" " alt="" coords="3569,80,3671,107"/> <area shape="rect" href="../../d3/db5/vmm__memory_8c.html" title=" " alt="" coords="3695,80,3841,107"/> </map> </div> </div> <p><a href="../../dc/da7/assert_8h_source.html">Go to the source code of this file.</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a> Macros</h2></td></tr> <tr class="memitem:a568e6bde99652b7fd271ad206cfe38f5"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/da7/assert_8h.html#a568e6bde99652b7fd271ad206cfe38f5">__BEGIN_DECLS</a></td></tr> <tr class="separator:a568e6bde99652b7fd271ad206cfe38f5"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a115472f6d0d1035f1885658ce0821537"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/da7/assert_8h.html#a115472f6d0d1035f1885658ce0821537">__END_DECLS</a></td></tr> <tr class="separator:a115472f6d0d1035f1885658ce0821537"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a996f2029fe483c1b8a84dd3d389ee61f"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/da7/assert_8h.html#a996f2029fe483c1b8a84dd3d389ee61f">_assert</a>(e)   <a class="el" href="../../dc/da7/assert_8h.html#ad6d5aaa966ca7424f7cb9bd01f2c838b">assert</a>(e)</td></tr> <tr class="separator:a996f2029fe483c1b8a84dd3d389ee61f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ad6d5aaa966ca7424f7cb9bd01f2c838b"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/da7/assert_8h.html#ad6d5aaa966ca7424f7cb9bd01f2c838b">assert</a>(e)</td></tr> <tr class="separator:ad6d5aaa966ca7424f7cb9bd01f2c838b"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:a91f3470f2840aa744e4877bdc6ce1171"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/da7/assert_8h.html#a91f3470f2840aa744e4877bdc6ce1171">__assert</a> (<a class="el" href="../../d6/d92/cdefs_8h.html#a2c212835823e3c54a8ab6d95c652660e">const</a> char *, <a class="el" href="../../d6/d92/cdefs_8h.html#a2c212835823e3c54a8ab6d95c652660e">const</a> char *, int, <a class="el" href="../../d6/d92/cdefs_8h.html#a2c212835823e3c54a8ab6d95c652660e">const</a> char *)</td></tr> <tr class="memdesc:a91f3470f2840aa744e4877bdc6ce1171"><td class="mdescLeft"> </td><td class="mdescRight">The underlying assertion call which is wrapped by <a class="el" href="../../dc/da7/assert_8h.html#ad6d5aaa966ca7424f7cb9bd01f2c838b">assert()</a> <a href="../../dc/da7/assert_8h.html#a91f3470f2840aa744e4877bdc6ce1171">More...</a><br /></td></tr> <tr class="separator:a91f3470f2840aa744e4877bdc6ce1171"><td class="memSeparator" colspan="2"> </td></tr> </table> <h2 class="groupheader">Macro Definition Documentation</h2> <a id="a568e6bde99652b7fd271ad206cfe38f5"></a> <h2 class="memtitle"><span class="permalink"><a href="#a568e6bde99652b7fd271ad206cfe38f5">◆ </a></span>__BEGIN_DECLS</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define __BEGIN_DECLS</td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../dc/da7/assert_8h_source.html#l00046">46</a> of file <a class="el" href="../../dc/da7/assert_8h_source.html">assert.h</a>.</p> </div> </div> <a id="a115472f6d0d1035f1885658ce0821537"></a> <h2 class="memtitle"><span class="permalink"><a href="#a115472f6d0d1035f1885658ce0821537">◆ </a></span>__END_DECLS</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define __END_DECLS</td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../dc/da7/assert_8h_source.html#l00047">47</a> of file <a class="el" href="../../dc/da7/assert_8h_source.html">assert.h</a>.</p> </div> </div> <a id="a996f2029fe483c1b8a84dd3d389ee61f"></a> <h2 class="memtitle"><span class="permalink"><a href="#a996f2029fe483c1b8a84dd3d389ee61f">◆ </a></span>_assert</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define _assert</td> <td>(</td> <td class="paramtype"> </td> <td class="paramname">e</td><td>)</td> <td>   <a class="el" href="../../dc/da7/assert_8h.html#ad6d5aaa966ca7424f7cb9bd01f2c838b">assert</a>(e)</td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../dc/da7/assert_8h_source.html#l00062">62</a> of file <a class="el" href="../../dc/da7/assert_8h_source.html">assert.h</a>.</p> </div> </div> <a id="ad6d5aaa966ca7424f7cb9bd01f2c838b"></a> <h2 class="memtitle"><span class="permalink"><a href="#ad6d5aaa966ca7424f7cb9bd01f2c838b">◆ </a></span>assert</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define assert</td> <td>(</td> <td class="paramtype"> </td> <td class="paramname">e</td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <b>Value:</b><div class="fragment"><div class="line">((e) ? (<span class="keywordtype">void</span>)0 : <a class="code" href="../../dc/da7/assert_8h.html#a91f3470f2840aa744e4877bdc6ce1171">__assert</a>(<a class="code" href="../../d6/d92/cdefs_8h.html#a7d6e1cf1a8d53f38471e9e9db3faf740">__func__</a>, __FILE__, \</div> <div class="line"> __LINE__, #e))</div> </div><!-- fragment --> <p class="definition">Definition at line <a class="el" href="../../dc/da7/assert_8h_source.html#l00064">64</a> of file <a class="el" href="../../dc/da7/assert_8h_source.html">assert.h</a>.</p> </div> </div> <h2 class="groupheader">Function Documentation</h2> <a id="a91f3470f2840aa744e4877bdc6ce1171"></a> <h2 class="memtitle"><span class="permalink"><a href="#a91f3470f2840aa744e4877bdc6ce1171">◆ </a></span>__assert()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __assert </td> <td>(</td> <td class="paramtype"><a class="el" href="../../d6/d92/cdefs_8h.html#a2c212835823e3c54a8ab6d95c652660e">const</a> char * </td> <td class="paramname"><em>func</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="../../d6/d92/cdefs_8h.html#a2c212835823e3c54a8ab6d95c652660e">const</a> char * </td> <td class="paramname"><em>file</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>line</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="../../d6/d92/cdefs_8h.html#a2c212835823e3c54a8ab6d95c652660e">const</a> char * </td> <td class="paramname"><em>failedexpr</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>The underlying assertion call which is wrapped by <a class="el" href="../../dc/da7/assert_8h.html#ad6d5aaa966ca7424f7cb9bd01f2c838b">assert()</a> </p> <p class="definition">Definition at line <a class="el" href="../../d6/da0/assert_8c_source.html#l00037">37</a> of file <a class="el" href="../../d6/da0/assert_8c_source.html">assert.c</a>.</p> <p class="reference">References <a class="el" href="../../d3/d24/kpanic_8h_source.html#l00032">K_PANIC</a>, <a class="el" href="../../df/d87/kprintf_8c_source.html#l00259">kprintf()</a>, and <a class="el" href="../../d6/d8a/fat__string_8h_source.html#l00017">NULL</a>.</p> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><img src="../../dc/da7/assert_8h_a91f3470f2840aa744e4877bdc6ce1171_cgraph.png" border="0" usemap="#dc/da7/assert_8h_a91f3470f2840aa744e4877bdc6ce1171_cgraph" alt=""/></div> <map name="dc/da7/assert_8h_a91f3470f2840aa744e4877bdc6ce1171_cgraph" id="dc/da7/assert_8h_a91f3470f2840aa744e4877bdc6ce1171_cgraph"> <area shape="rect" title="The underlying assertion call which is wrapped by assert()" alt="" coords="5,132,77,159"/> <area shape="rect" href="../../da/d28/kprintf_8h.html#a20b56810edb62a6fe59917015c30848f" title=" " alt="" coords="125,132,183,159"/> <area shape="rect" href="../../dd/d78/video_8h.html#a5429378b96a24fadfd2d1f8d777eb95a" title=" " alt="" coords="237,81,291,108"/> <area shape="rect" href="../../df/d87/kprintf_8c.html#a3093cdac4668a4ccffdd7f77270888b7" title=" " alt="" coords="233,132,295,159"/> <area shape="rect" href="../../da/d28/kprintf_8h.html#a3b4a66bf1f6583e65660f281b6014aa1" title=" " alt="" coords="231,183,297,209"/> <area shape="rect" href="../../dc/dac/io_8h.html#a77b934268de1b3ecdcf3f275413b3108" title="input one byte from specified port" alt="" coords="349,5,431,32"/> <area shape="rect" href="../../dc/dac/io_8h.html#a8acc1a06073db2e7b92ffbd00fbd0cf1" title="outputut one byte to specified port" alt="" coords="345,56,435,83"/> <area shape="rect" href="../../dd/d71/tty_8h.html#a4f96ccac7e60296ef496008d8cbed0ff" title=" " alt="" coords="358,107,422,133"/> <area shape="rect" href="../../dd/d71/tty_8h.html#ad96f57a7c113d3cfa76ee5fed6de33c0" title=" " alt="" coords="355,157,425,184"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a71f03d2ba55111c715b6068254847a53" title=" " alt="" coords="483,157,557,184"/> <area shape="rect" href="../../d3/d02/armv6_2sched_8c.html#a08933fe6d593a1c78b9080359f15a0b7" title=" " alt="" coords="606,132,697,159"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a740766af5da58616f700fffab6768a78" title=" " alt="" coords="605,183,697,209"/> </map> </div> </div> </div> </div><!-- contents --> </div><!-- doc-content --> <div class="ttc" id="acdefs_8h_html_a7d6e1cf1a8d53f38471e9e9db3faf740"><div class="ttname"><a href="../../d6/d92/cdefs_8h.html#a7d6e1cf1a8d53f38471e9e9db3faf740">__func__</a></div><div class="ttdeci">#define __func__</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/d92/cdefs_8h_source.html#l00409">cdefs.h:409</a></div></div> <div class="ttc" id="aassert_8h_html_a91f3470f2840aa744e4877bdc6ce1171"><div class="ttname"><a href="../../dc/da7/assert_8h.html#a91f3470f2840aa744e4877bdc6ce1171">__assert</a></div><div class="ttdeci">void __assert(const char *, const char *, int, const char *)</div><div class="ttdoc">The underlying assertion call which is wrapped by assert()</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/da0/assert_8c_source.html#l00037">assert.c:37</a></div></div> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="../../dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="../../dc/da7/assert_8h.html">assert.h</a></li> <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.16 </li> </ul> </div> </body> </html>