1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 9<title>ASSERTMSG</title> 10</head> 11 12<body> 13 14<h1>ASSERTMSG</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/os.h> 19 20void ASSERTMSG(int expression, char* message, ...); 21</pre></dd></dl> 22 23<h2>Arguments</h2> 24<TABLE class="arguments" border="1" > 25 <tr> 26<TH>expression</TH> 27<TD>Conditional format used to check when the <CODE>_DEBUG</CODE> macro is defined.</TD> 28 </tr> 29 <tr> 30<TH>message</TH> 31<TD>Pointer to the null-terminated character string to be displayed if <SPAN class="argument">expression</SPAN> is <CODE>FALSE</CODE>.</TD> 32 </tr> 33 <tr> 34 <TH>...</TH> 35<TD>Option argument.</TD> 36 </tr> 37</TABLE> 38 39<h2>Return Values</h2> 40<p>None.</p> 41 42<H2>Description</H2> 43<P>When the <CODE>_DEBUG</CODE> macro is defined and if <SPAN class="argument">expression</SPAN> is <CODE>FALSE</CODE>, <CODE>ASSERTMSG</CODE> displays <SPAN class="argument">message</SPAN>. The message includes the text in <SPAN class="argument">expression</SPAN>. It is displayed in the debug log window, and the console is halted.</P> 44<P>If the <CODE>_DEBUG</CODE> macro is not defined, <CODE>ASSERTMSG</CODE> will do nothing.</P> 45 46<h2>See Also</h2> 47<P class="reference"> 48<A href="../toc.html#Error" target="contents">Error Functions</A>, 49<a href="ASSERT.html">ASSERT</a>, 50<a href="OSHalt.html">OSHalt</a>, 51<a href="OSReport.html">OSReport</a> 52</p> 53 54<H2>Revision History</H2> 55<P> 562006/03/01 Initial version.<br> 57</p> 58 59<hr><p>CONFIDENTIAL</p></body> 60</html>