<!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: lib/assert.c 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('d6/da0/assert_8c.html','../../');}); /* @license-end */ </script> <div id="doc-content"> <div class="header"> <div class="summary"> <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">assert.c File Reference</div> </div> </div><!--header--> <div class="contents"> <div class="textblock"><code>#include <<a class="el" href="../../dc/da7/assert_8h_source.html">assert.h</a>></code><br /> <code>#include <<a class="el" href="../../da/d28/kprintf_8h_source.html">lib/kprintf.h</a>></code><br /> <code>#include <<a class="el" href="../../d3/d24/kpanic_8h_source.html">ubixos/kpanic.h</a>></code><br /> </div><div class="textblock"><div class="dynheader"> Include dependency graph for assert.c:</div> <div class="dyncontent"> <div class="center"><img src="../../da/d14/assert_8c__incl.png" border="0" usemap="#lib_2assert_8c" alt=""/></div> <map name="lib_2assert_8c" id="lib_2assert_8c"> <area shape="rect" title=" " alt="" coords="98,5,185,32"/> <area shape="rect" href="../../dc/da7/assert_8h.html" title=" " alt="" coords="5,80,75,107"/> <area shape="rect" href="../../da/d28/kprintf_8h.html" title=" " alt="" coords="99,80,184,107"/> <area shape="rect" href="../../d3/d24/kpanic_8h.html" title=" " alt="" coords="209,80,322,107"/> <area shape="rect" href="../../d0/d27/include_2sys_2types_8h.html" title=" " alt="" coords="44,155,135,181"/> <area shape="rect" href="../../d1/d2d/stdarg_8h.html" title=" " alt="" coords="159,155,228,181"/> <area shape="rect" href="../../d0/d6f/__types_8h.html" title=" " alt="" coords="203,379,301,405"/> <area shape="rect" href="../../d9/dab/select_8h.html" title=" " alt="" coords="141,229,235,256"/> <area shape="rect" href="../../d6/d92/cdefs_8h.html" title=" " alt="" coords="79,304,169,331"/> <area shape="rect" href="../../d6/d30/__timespec_8h.html" title=" " alt="" coords="193,304,311,331"/> <area shape="rect" href="../../df/dc5/__timeval_8h.html" title=" " alt="" coords="335,304,441,331"/> <area shape="rect" href="../../d6/da4/__sigset_8h.html" title=" " alt="" coords="465,304,565,331"/> </map> </div> </div> <p><a href="../../d6/da0/assert_8c_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="func-members"></a> Functions</h2></td></tr> <tr class="memitem:a05f6680808cf2d1b1aef3c9c86901f16"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/da0/assert_8c.html#a05f6680808cf2d1b1aef3c9c86901f16">__assert</a> (<a class="el" href="../../d6/d92/cdefs_8h.html#a2c212835823e3c54a8ab6d95c652660e">const</a> char *func, <a class="el" href="../../d6/d92/cdefs_8h.html#a2c212835823e3c54a8ab6d95c652660e">const</a> char *<a class="el" href="../../d7/d3a/structfile.html">file</a>, int line, <a class="el" href="../../d6/d92/cdefs_8h.html#a2c212835823e3c54a8ab6d95c652660e">const</a> char *failedexpr)</td></tr> <tr class="memdesc:a05f6680808cf2d1b1aef3c9c86901f16"><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="../../d6/da0/assert_8c.html#a05f6680808cf2d1b1aef3c9c86901f16">More...</a><br /></td></tr> <tr class="separator:a05f6680808cf2d1b1aef3c9c86901f16"><td class="memSeparator" colspan="2"> </td></tr> </table> <h2 class="groupheader">Function Documentation</h2> <a id="a05f6680808cf2d1b1aef3c9c86901f16"></a> <h2 class="memtitle"><span class="permalink"><a href="#a05f6680808cf2d1b1aef3c9c86901f16">◆ </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="../../d6/da0/assert_8c_a05f6680808cf2d1b1aef3c9c86901f16_cgraph.png" border="0" usemap="#d6/da0/assert_8c_a05f6680808cf2d1b1aef3c9c86901f16_cgraph" alt=""/></div> <map name="d6/da0/assert_8c_a05f6680808cf2d1b1aef3c9c86901f16_cgraph" id="d6/da0/assert_8c_a05f6680808cf2d1b1aef3c9c86901f16_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 --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="../../dir_97aefd0d527b934f1d99a682da8fe6a9.html">lib</a></li><li class="navelem"><a class="el" href="../../d6/da0/assert_8c.html">assert.c</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>