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_jumps.h File Reference</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_error_imp_jumps.h File Reference</h1>Implemenation of using Setjmp / Longjmp. 10<a href="#_details">More...</a> 11<p> 12<code>#include "<a class="el" href="oscl__error__trapcleanup_8h-source.html">oscl_error_trapcleanup.h</a>"</code><br> 13<code>#include "<a class="el" href="oscl__assert_8h-source.html">oscl_assert.h</a>"</code><br> 14<code>#include "<a class="el" href="osclconfig__error_8h-source.html">osclconfig_error.h</a>"</code><br> 15<code>#include "<a class="el" href="oscl__defalloc_8h-source.html">oscl_defalloc.h</a>"</code><br> 16<code>#include "<a class="el" href="oscl__error_8h-source.html">oscl_error.h</a>"</code><br> 17 18<p> 19<a href="oscl__error__imp__jumps_8h-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0> 20<tr><td></td></tr> 21<tr><td colspan=2><br><h2>Data Structures</h2></td></tr> 22<tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classOsclJump.html">OsclJump</a></td></tr> 23<tr><td colspan=2><br><h2>Defines</h2></td></tr> 24<tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="group__osclerror.html#a41">OSCL_JUMP_MAX_JUMP_MARKS</a> OSCL_MAX_TRAP_LEVELS</td></tr> 25<tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="group__osclerror.html#a42">internalLeave</a> (-1)</td></tr> 26<tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="oscl__error__imp__jumps_8h.html#a2">PVError_DoLeave</a>() OsclJump::StaticJump(<a class="el" href="classinternalLeave.html">internalLeave</a>)</td></tr> 27<tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="oscl__error__imp__jumps_8h.html#a3">_PV_TRAP</a>(__r, __s)</td></tr> 28<tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="oscl__error__imp__jumps_8h.html#a4">_PV_TRAP_NO_TLS</a>(__trapimp, __r, __s)</td></tr> 29</table> 30<hr><a name="_details"></a><h2>Detailed Description</h2> 31Implemenation of using Setjmp / Longjmp. 32<p> 33 34<p> 35<hr><h2>Define Documentation</h2> 36<a name="a3" doxytag="oscl_error_imp_jumps.h::_PV_TRAP"></a><p> 37<table width="100%" cellpadding="2" cellspacing="0" border="0"> 38 <tr> 39 <td class="md"> 40 <table cellpadding="0" cellspacing="0" border="0"> 41 <tr> 42 <td class="md" nowrap valign="top"> #define _PV_TRAP</td> 43 <td class="md" valign="top">( </td> 44 <td class="md" nowrap valign="top">__r, <tr> 45 <td></td> 46 <td></td> 47 <td class="md" nowrap>__s </td> 48 <td class="mdname1" valign="top" nowrap> </td> 49 <td class="md" valign="top">) </td> 50 <td class="md" nowrap> 51 </table> 52 </td> 53 </tr> 54</table> 55<table cellspacing=5 cellpadding=0 border=0> 56 <tr> 57 <td> 58 59 </td> 60 <td> 61 62<p> 63<b>Value:</b><div class="fragment"><pre>__r=<a class="code" href="group__osclerror.html#a11">OsclErrNone</a>;\ 64 {\ 65 <a class="code" href="classOsclErrorTrapImp.html">OsclErrorTrapImp</a>* __trap=<a class="code" href="classOsclErrorTrapImp.html#d0">OsclErrorTrapImp::Trap</a>();\ 66 <span class="keywordflow">if</span>(!__trap){__s;}<span class="keywordflow">else</span>{\ 67 <span class="keywordtype">int</span> __tr=setjmp(*(__trap-><a class="code" href="classOsclErrorTrapImp.html#m0">iJumpData</a>-><a class="code" href="classOsclJump.html#a1">Top</a>()));\ 68 <span class="keywordflow">if</span> (__tr==0)\ 69 {__s;}\ 70 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (__tr==<a class="code" href="classinternalLeave.html">internalLeave</a>)\ 71 {__r=__trap-><a class="code" href="classOsclErrorTrapImp.html#m1">iLeave</a>;}\ 72 __trap-><a class="code" href="classOsclErrorTrapImp.html#a0">UnTrap</a>();}\ 73 }</pre></div> </td> 74 </tr> 75</table> 76<a name="a4" doxytag="oscl_error_imp_jumps.h::_PV_TRAP_NO_TLS"></a><p> 77<table width="100%" cellpadding="2" cellspacing="0" border="0"> 78 <tr> 79 <td class="md"> 80 <table cellpadding="0" cellspacing="0" border="0"> 81 <tr> 82 <td class="md" nowrap valign="top"> #define _PV_TRAP_NO_TLS</td> 83 <td class="md" valign="top">( </td> 84 <td class="md" nowrap valign="top">__trapimp, <tr> 85 <td></td> 86 <td></td> 87 <td class="md" nowrap>__r, <tr> 88 <td></td> 89 <td></td> 90 <td class="md" nowrap>__s </td> 91 <td class="mdname1" valign="top" nowrap> </td> 92 <td class="md" valign="top">) </td> 93 <td class="md" nowrap> 94 </table> 95 </td> 96 </tr> 97</table> 98<table cellspacing=5 cellpadding=0 border=0> 99 <tr> 100 <td> 101 102 </td> 103 <td> 104 105<p> 106<b>Value:</b><div class="fragment"><pre>__r=<a class="code" href="group__osclerror.html#a11">OsclErrNone</a>;\ 107 {\ 108 <a class="code" href="classOsclErrorTrapImp.html">OsclErrorTrapImp</a>* __trap=<a class="code" href="classOsclErrorTrapImp.html#d1">OsclErrorTrapImp::TrapNoTls</a>(__trapimp);\ 109 <span class="keywordflow">if</span>(!__trap){__s;}<span class="keywordflow">else</span>{\ 110 <span class="keywordtype">int</span> __tr=setjmp(*(__trap-><a class="code" href="classOsclErrorTrapImp.html#m0">iJumpData</a>-><a class="code" href="classOsclJump.html#a1">Top</a>()));\ 111 <span class="keywordflow">if</span> (__tr==0)\ 112 {__s;}\ 113 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (__tr==<a class="code" href="classinternalLeave.html">internalLeave</a>)\ 114 {__r=__trap-><a class="code" href="classOsclErrorTrapImp.html#m1">iLeave</a>;}\ 115 __trap-><a class="code" href="classOsclErrorTrapImp.html#a0">UnTrap</a>();}\ 116 }</pre></div> </td> 117 </tr> 118</table> 119<a name="a2" doxytag="oscl_error_imp_jumps.h::PVError_DoLeave"></a><p> 120<table width="100%" cellpadding="2" cellspacing="0" border="0"> 121 <tr> 122 <td class="md"> 123 <table cellpadding="0" cellspacing="0" border="0"> 124 <tr> 125 <td class="md" nowrap valign="top"> #define PVError_DoLeave</td> 126 <td class="md" valign="top">( </td> 127 </td> 128 <td class="mdname1" valign="top" nowrap> </td> 129 <td class="md" valign="top">) </td> 130 <td class="md" nowrap> OsclJump::StaticJump(<a class="el" href="classinternalLeave.html">internalLeave</a>) 131 </table> 132 </td> 133 </tr> 134</table> 135<table cellspacing=5 cellpadding=0 border=0> 136 <tr> 137 <td> 138 139 </td> 140 <td> 141 142<p> 143 </td> 144 </tr> 145</table> 146<hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small> 147<address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small> 148</small></address> 149</body> 150</html> 151