ASSERTMSG

C Specification

#include <revolution/os.h>
void ASSERTMSG(int expression, char* message, ...);

Arguments

expression Conditional expression used for checking if the _DEBUG macro is defined.
message Pointer to a null-terminated character string to display if expression is FALSE.
... Optional argument.

Return Values

None.

Description

When the _DEBUG macro is defined and if expression is FALSE, ASSERTMSG displays a failure messagemessage displays in the debug log window, and the console is halted.

If the _DEBUG macro is undefined, ASSERTMSG does nothing.

See Also

Error Functions, ASSERT, OSHalt,OSReport

Revision History

03/01/2006 Initial version.