| <!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_error_imp_fatalerror.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_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> |
| 00002 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span> |
| 00003 |
| 00004 <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> |
| 00005 |
| 00006 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span> |
| 00007 |
| 00018 <span class="preprocessor">#ifndef OSCL_ERROR_IMP_FATALERROR_H_INCLUDED</span> |
| 00019 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_ERROR_IMP_FATALERROR_H_INCLUDED</span> |
| 00020 <span class="preprocessor"></span> |
| 00021 <span class="comment">// Implementation File for Leave using system fatal error.</span> |
| 00022 |
| 00023 <span class="comment">//Fatal error implementation for compilers without C++ exceptions.</span> |
| 00024 <span class="comment">//This implementation is very limited. Leave conditions</span> |
| 00025 <span class="comment">//just cause fatal program errors. There is no way to catch or trap</span> |
| 00026 <span class="comment">//any Leave.</span> |
| 00027 <span class="preprocessor">#ifndef OSCL_ASSERT_H_INCLUDED</span> |
| 00028 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="oscl__assert_8h.html">oscl_assert.h</a>"</span> |
| 00029 <span class="preprocessor">#endif</span> |
| 00030 <span class="preprocessor"></span> |
| 00031 <span class="comment">//Leave just calls a system fatal error.</span> |
| <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> |
| 00033 <span class="preprocessor"></span> |
| 00034 <span class="comment">//_PV_TRAP</span> |
| 00035 <span class="comment">//_r is leave code, _s is statements.</span> |
| 00036 <span class="comment">//this macro isn't really functional since any</span> |
| 00037 <span class="comment">//leave will abort the program, but it's needed</span> |
| 00038 <span class="comment">//to compile.</span> |
| <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> |
| 00040 <span class="preprocessor"> __r=OsclErrNone;\</span> |
| 00041 <span class="preprocessor"> {__s;}</span> |
| 00042 <span class="preprocessor"></span> |
| 00043 <span class="comment">//_PV_TRAP_NO_TLS</span> |
| 00044 <span class="comment">//_r is leave code, _s is statements.</span> |
| 00045 <span class="comment">//this macro isn't really functional since any</span> |
| 00046 <span class="comment">//leave will abort the program, but it's needed</span> |
| 00047 <span class="comment">//to compile.</span> |
| <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> |
| 00049 <span class="preprocessor"> __r=OsclErrNone;\</span> |
| 00050 <span class="preprocessor"> {__s;}</span> |
| 00051 <span class="preprocessor"></span> |
| 00052 |
| 00053 |
| 00054 <span class="preprocessor">#endif // OSCL_ERROR_IMP_FATALERROR_H_INCLUDED</span> |
| 00055 <span class="preprocessor"></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> |