1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<HEAD>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
6<META http-equiv="Content-Style-Type" content="text/css">
7<TITLE>OS_TPanic</TITLE>
8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
9</HEAD>
10<BODY>
11<H1 align="left">OS_TPanic <IMG src="../../image/NTR.gif" align="middle"><IMG src="../../image/TWL.gif" align="middle"></H1>
12<H2>Syntax</H2>
13<DL>
14  <DD><CODE>#include &lt;nitro/os.h&gt;</CODE><BR>
15  <BR>
16  <CODE>void OS_TPanic( const char *fmt, ... );</CODE>
17</DL>
18<H2>Arguments</H2>
19<TABLE border="1">
20  <TBODY>
21    <TR>
22      <TD><B><I>fmt</I></B></TD>
23      <TD>Output format string.</TD>
24    </TR>
25    <TR>
26      <TD><B><I>...</I></B></TD>
27      <TD>Variable number of arguments</TD>
28    </TR>
29  </TBODY>
30</TABLE>
31<H2>Return Values</H2>
32<P>None.</P>
33<H2>Description</H2>
34<P>Outputs a string.</P>
35<P>Internally, this function calls <a href="OS_VSNPrintf.html"><code>OS_VSNPrintf()</code></a>. Therefore the useable string format (string output format) is more restricted than it would be with <a href="OS_Panic.html"><code>OS_Panic()</code></a>. However, you can save on the code and stack overhead by using this function instead of <a href="OS_Panic.html"><code>OS_Panic()</code></a>.</P>
36<P>The output format is:</P>
37<P> <code>&lt;filename&gt;:&lt;linenumber&gt;</code> Panic: &lt;string&gt;</P>
38<P>&nbsp;<code>&lt;filename&gt; &lt;linenumber&gt;</code> are the file name and line number describing this <a href="OS_Panic.html"><code>OS_Panic()</code></a> function. <code>&lt;string&gt;</code> is created from <em><strong><code>fmt</code></strong></em> and the variable number of arguments.</P>
39
40<P>This function is used for debugging, so the final ROM version (<code>FINALROM</code>) will only stop the program (just like <a href="../system/OS_Terminate.html"><code>OS_Terminate()</code></a> ).</P>
41<H2>Internal Operation</H2>
42<P><code>OS_TPanic()</code> is actually a <code>#define</code> of <code>OSi_TPanic()</code>. <code>OSi_TPanic()</code> is compiled with weak symbols. Therefore you can overwrite them with your own function definitions.</P>
43<H2>See Also</H2>
44<P><a href="OS_TWarning.html"><code>OS_TWarning</a></code>, <code><a href="../system/OS_Terminate.html">OS_Terminate</a></code></P>
45<H2>Revision History</H2>
46<P>2004/11/25 Added description of weak symbols. <BR>2004/09/10 Initial version.</P>
47<hr><p>CONFIDENTIAL</p></body>
48</HTML>