ASSERT

Syntax

#include <cafe/os.h>

void ASSERT(int expression);

Parameters

expression Conditional expression used for checking if the _DEBUG macro is defined.

Return Values

None.

Description

When the _DEBUG macro is defined, the ASSERT function displays a failure message if expression is FALSE. The message that contains the text of expression appears in the output port, and the system panics. Crash dump logging may be initiated, as applicable.

If the _DEBUG macro is not defined, ASSERT does nothing.

Do Not Call From

None.

See Also

ASSERTMSG
OSHalt
OSPanic
OSReport

Revision History

2014-10-20 Added additional details to description.
2013-05-08 Automated cleanup pass.
2010-08-30 Initial version.


CONFIDENTIAL