• 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_error_imp_fatalerror.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_error_imp_fatalerror.h</h1><a href="oscl__error__imp__fatalerror_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 _ E R R O R _ I M P _ F A T A L E R R O R</span>
1300005
1400006 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span>
1500007
1600018 <span class="preprocessor">#ifndef OSCL_ERROR_IMP_FATALERROR_H_INCLUDED</span>
1700019 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_ERROR_IMP_FATALERROR_H_INCLUDED</span>
1800020 <span class="preprocessor"></span>
1900021 <span class="comment">// Implementation File for Leave using system fatal error.</span>
2000022
2100023 <span class="comment">//Fatal error implementation for compilers without C++ exceptions.</span>
2200024 <span class="comment">//This implementation is very limited.  Leave conditions</span>
2300025 <span class="comment">//just cause fatal program errors.  There is no way to catch or trap</span>
2400026 <span class="comment">//any Leave.</span>
2500027 <span class="preprocessor">#ifndef OSCL_ASSERT_H_INCLUDED</span>
2600028 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="oscl__assert_8h.html">oscl_assert.h</a>"</span>
2700029 <span class="preprocessor">#endif</span>
2800030 <span class="preprocessor"></span>
2900031 <span class="comment">//Leave just calls a system fatal error.</span>
30<a name="l00032"></a><a class="code" href="oscl__error__imp__fatalerror_8h.html#a0">00032</a> <span class="preprocessor">#define PVError_DoLeave() _OSCL_Abort()</span>
3100033 <span class="preprocessor"></span>
3200034 <span class="comment">//_PV_TRAP</span>
3300035 <span class="comment">//_r is leave code, _s is statements.</span>
3400036 <span class="comment">//this macro isn't really functional since any</span>
3500037 <span class="comment">//leave will abort the program, but it's needed</span>
3600038 <span class="comment">//to compile.</span>
37<a name="l00039"></a><a class="code" href="oscl__error__imp__fatalerror_8h.html#a1">00039</a> <span class="preprocessor">#define _PV_TRAP(__r,__s) \</span>
3800040 <span class="preprocessor">        __r=OsclErrNone;\</span>
3900041 <span class="preprocessor">        {__s;}</span>
4000042 <span class="preprocessor"></span>
4100043 <span class="comment">//_PV_TRAP_NO_TLS</span>
4200044 <span class="comment">//_r is leave code, _s is statements.</span>
4300045 <span class="comment">//this macro isn't really functional since any</span>
4400046 <span class="comment">//leave will abort the program, but it's needed</span>
4500047 <span class="comment">//to compile.</span>
46<a name="l00048"></a><a class="code" href="oscl__error__imp__fatalerror_8h.html#a2">00048</a> <span class="preprocessor">#define _PV_TRAP_NO_TLS(__tr,__r,__s) \</span>
4700049 <span class="preprocessor">        __r=OsclErrNone;\</span>
4800050 <span class="preprocessor">        {__s;}</span>
4900051 <span class="preprocessor"></span>
5000052
5100053
5200054 <span class="preprocessor">#endif // OSCL_ERROR_IMP_FATALERROR_H_INCLUDED</span>
5300055 <span class="preprocessor"></span>
54</pre></div><hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small>
55<address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small>
56</small></address>
57</body>
58</html>
59