• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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> &nbsp; <a class="qindex" href="modules.html">Modules</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; <a class="qindex" href="globals.html">Globals</a> &nbsp; </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>
1000002 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span>
1100003
1200004 <span class="comment">//                 O S C L _ A S S E R T</span>
1300005
1400006 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span>
1500007
1600019 <span class="preprocessor">#ifndef OSCL_ASSERT_H_INCLUDED</span>
1700020 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_ASSERT_H_INCLUDED</span>
1800021 <span class="preprocessor"></span>
1900022 <span class="preprocessor">#ifndef OSCL_BASE_H_INCLUDED</span>
2000023 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="oscl__base_8h.html">oscl_base.h</a>"</span>
2100024 <span class="preprocessor">#endif</span>
2200025 <span class="preprocessor"></span>
2300026
2400028
2500030 <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>();
2600031
2700033
2800038 <span class="preprocessor">#if (!defined(NDEBUG) || (OSCL_ASSERT_ALWAYS))</span>
2900039 <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);
3000040
31<a name="l00041"></a><a class="code" href="group__osclbase.html#a78">00041</a> <span class="preprocessor">#define OSCL_ASSERT(_expr) \</span>
3200042 <span class="preprocessor">    ((_expr)?((void)0):OSCL_Assert(# _expr,__FILE__,__LINE__))</span>
3300043 <span class="preprocessor"></span>
3400044 <span class="preprocessor">#else</span>
3500045 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_ASSERT(_expr) ((void)0)</span>
3600046 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
3700047 <span class="preprocessor"></span>
3800048 <span class="preprocessor">#if (!OSCL_DISABLE_INLINES)</span>
3900049 <span class="preprocessor"></span><span class="preprocessor">#include "oscl_assert.inl"</span>
4000050 <span class="preprocessor">#endif</span>
4100051 <span class="preprocessor"></span>
4200054 <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