| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> |
| <title>oscl_assert.h Source File</title> |
| <link href="doxygen.css" rel="stylesheet" type="text/css"> |
| </head><body> |
| <!-- Generated by Doxygen 1.2.18 --> |
| <center> |
| <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> <a class="qindex" href="globals.html">Globals</a> </center> |
| <hr><h1>oscl_assert.h</h1><a href="oscl__assert_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">// -*- c++ -*-</span> |
| 00002 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span> |
| 00003 |
| 00004 <span class="comment">// O S C L _ A S S E R T</span> |
| 00005 |
| 00006 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span> |
| 00007 |
| 00019 <span class="preprocessor">#ifndef OSCL_ASSERT_H_INCLUDED</span> |
| 00020 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_ASSERT_H_INCLUDED</span> |
| 00021 <span class="preprocessor"></span> |
| 00022 <span class="preprocessor">#ifndef OSCL_BASE_H_INCLUDED</span> |
| 00023 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="oscl__base_8h.html">oscl_base.h</a>"</span> |
| 00024 <span class="preprocessor">#endif</span> |
| 00025 <span class="preprocessor"></span> |
| 00026 |
| 00028 |
| 00030 <a class="code" href="group__osclbase.html#a84">OSCL_COND_IMPORT_REF</a> <span class="keywordtype">void</span> <a class="code" href="group__osclbase.html#a34">_OSCL_Abort</a>(); |
| 00031 |
| 00033 |
| 00038 <span class="preprocessor">#if (!defined(NDEBUG) || (OSCL_ASSERT_ALWAYS))</span> |
| 00039 <span class="preprocessor"></span>OSCL_IMPORT_REF <span class="keywordtype">void</span> <a class="code" href="group__osclbase.html#a35">OSCL_Assert</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *expr, <span class="keyword">const</span> <span class="keywordtype">char</span> *filename, <span class="keywordtype">int</span> line_number); |
| 00040 |
| <a name="l00041"></a><a class="code" href="group__osclbase.html#a78">00041</a> <span class="preprocessor">#define OSCL_ASSERT(_expr) \</span> |
| 00042 <span class="preprocessor"> ((_expr)?((void)0):OSCL_Assert(# _expr,__FILE__,__LINE__))</span> |
| 00043 <span class="preprocessor"></span> |
| 00044 <span class="preprocessor">#else</span> |
| 00045 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_ASSERT(_expr) ((void)0)</span> |
| 00046 <span class="preprocessor"></span><span class="preprocessor">#endif</span> |
| 00047 <span class="preprocessor"></span> |
| 00048 <span class="preprocessor">#if (!OSCL_DISABLE_INLINES)</span> |
| 00049 <span class="preprocessor"></span><span class="preprocessor">#include "oscl_assert.inl"</span> |
| 00050 <span class="preprocessor">#endif</span> |
| 00051 <span class="preprocessor"></span> |
| 00054 <span class="preprocessor">#endif // OSCL_ASSERT_H_INCLUDED</span> |
| </pre></div><hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small> |
| <address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small> |
| </small></address> |
| </body> |
| </html> |