ASSERTMSG

Syntax

#include <revolution/os.h>

void ASSERTMSG(int expression, char* message, ...);

Arguments

expression Conditional format used to check when the _DEBUG macro is defined.
message Pointer to the null-terminated character string to be displayed if expression is FALSE.
... Option argument.

Return Values

None.

Description

When the _DEBUG macro is defined and if expression is FALSE, ASSERTMSG displays message. The message includes the text in expression. It is displayed in the debug log window, and the console is halted.

If the _DEBUG macro is not defined, ASSERTMSG will do nothing.

See Also

Error Functions, ASSERT, OSHalt, OSReport

Revision History

2006/03/01 Initial version.


CONFIDENTIAL