1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> 3 <title>oscl_assert.h Source File</title> 4 <link href="doxygen.css" rel="stylesheet" type="text/css"> 5 </head><body> 6 <!-- Generated by Doxygen 1.2.18 --> 7 <center> 8 <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> 9 <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> 10 00002 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span> 11 00003 12 00004 <span class="comment">// O S C L _ A S S E R T</span> 13 00005 14 00006 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span> 15 00007 16 00019 <span class="preprocessor">#ifndef OSCL_ASSERT_H_INCLUDED</span> 17 00020 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_ASSERT_H_INCLUDED</span> 18 00021 <span class="preprocessor"></span> 19 00022 <span class="preprocessor">#ifndef OSCL_BASE_H_INCLUDED</span> 20 00023 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="oscl__base_8h.html">oscl_base.h</a>"</span> 21 00024 <span class="preprocessor">#endif</span> 22 00025 <span class="preprocessor"></span> 23 00026 24 00028 25 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>(); 26 00031 27 00033 28 00038 <span class="preprocessor">#if (!defined(NDEBUG) || (OSCL_ASSERT_ALWAYS))</span> 29 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); 30 00040 31 <a name="l00041"></a><a class="code" href="group__osclbase.html#a78">00041</a> <span class="preprocessor">#define OSCL_ASSERT(_expr) \</span> 32 00042 <span class="preprocessor"> ((_expr)?((void)0):OSCL_Assert(# _expr,__FILE__,__LINE__))</span> 33 00043 <span class="preprocessor"></span> 34 00044 <span class="preprocessor">#else</span> 35 00045 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_ASSERT(_expr) ((void)0)</span> 36 00046 <span class="preprocessor"></span><span class="preprocessor">#endif</span> 37 00047 <span class="preprocessor"></span> 38 00048 <span class="preprocessor">#if (!OSCL_DISABLE_INLINES)</span> 39 00049 <span class="preprocessor"></span><span class="preprocessor">#include "oscl_assert.inl"</span> 40 00050 <span class="preprocessor">#endif</span> 41 00051 <span class="preprocessor"></span> 42 00054 <span class="preprocessor">#endif // OSCL_ASSERT_H_INCLUDED</span> 43 </pre></div><hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small> 44 <address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small> 45 </small></address> 46 </body> 47 </html> 48