1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../../../css/manpage.css" type="text/css" /> 7<title>SetUserExceptionHandler</title> 8 </head> 9 <body> 10<h1><CODE><a href="../../../nn/Overview.html">nn</a>::<a href="../../../nn/os/Overview.html">os</a>::<a href="../../../nn/os/ARM/Overview.html">ARM</a>::SetUserExceptionHandler</CODE> Function</h1> 11<h2>Syntax</h2> 12 <div class="section"> 13 <pre class="definition"> 14template <typename T> 15void SetUserExceptionHandler( 16 <a href="../../../nn/os/ARM/UserExceptionHandler.html">UserExceptionHandler</a> pHandler, 17 T * pStack, 18 <a href="../../../nn/os/ARM/ExceptionBuffer/Overview.html">ExceptionBuffer</a> * pExceptionBuffer 19); 20</pre> 21 </div> 22<h2>Template Arguments</h2> 23 <div class="section"> 24 <table class="arguments"> 25 <thead> 26 <tr> 27<th>Name</th> 28<td>Description</td> 29 </tr> 30 </thead> 31 <tr> 32<th>T</th> 33<td>Stack type.</td> 34 </tr> </table> 35 </div> 36<h2>Arguments</h2> 37 <div class="section"> 38 <table class="arguments"> 39 <thead> 40 <tr> 41 <td width="15" /> 42<th>Name</th> 43<td>Description</td> 44 </tr> 45 </thead> 46 <tr> 47<td>in</td> 48<th>pHandler</th> 49<td>Specifies the exception handler called when an exception occurs.</td> 50 </tr> 51 <tr> 52<td>in</td> 53<th>pStack</th> 54<td>Specifies the stack to use for the exception handler.</td> 55 </tr> 56 <tr> 57<td>in</td> 58<th><CODE>pExceptionBuffer</CODE></th> 59<td>Specifies a buffer for storing exception information.</td> 60 </tr> </table> 61 </div> 62<h2>Return Values</h2> 63 <div class="section"> 64None. 65 </div> 66<h2>Description</h2> 67 <div class="section"> 68<p>Specifies the global exception handler.</p><p>This wrapper function is used to accept the stack used by the exception handler via a stack-type member function. </p><p>For details, see <a href="../../../nn/os/ARM/SetUserExceptionHandler.html"><CODE>SetUserExceptionHandler(UserExceptionHandler, uptr, ExceptionBuffer*)</CODE></a>.</p><!-- write here --></div> 69<h2>Revision History</h2> 70 <div class="section"> 71 <dl class="history"> 72 <dt>2011/05/02</dt> 73<dd>Modified wording to read "to the stack specified by <CODE>stackBottom</CODE>" rather than just "to <CODE>stackBottom</CODE>." 74 </dd> 75 <dt>2010/09/16</dt> 76<dd>Added mention that the exception handler is not called in the debug environment.<br /> 77 </dd> 78 <dt>2010/08/16</dt> 79<dd>Initial version.<br /> 80 </dd> 81 </dl> 82 </div> 83 <hr><p>CONFIDENTIAL</p></body> 84</html> 85