OSPanic

Syntax

#include <cafe/os.h>

void OSPanic(const char* file, int line, const char* msg, ...);

Parameters

file Pointer to a null-terminated string referring to the name of the source file related to this panic. Typically one will specify the macro __FILE__ for this argument.
line Positive integer referring to the source file line number which is initiating the system panic. Typically one will specify the macro __LINE__ for this argument.
msg Pointer to a null-terminated string that includes format specification (equivalent to C standard output functions).
... Optional argument.

Return Values

None.

Description

This function induces a system panic. The specified text file, line, and formatted string msg are sent to the output port. Crash dump logging may be initiated, as applicable.

Do Not Call From

Production code Do not call this function in production code. It is available only for debugging purposes.

See Also

ASSERT
ASSERTMSG
OSHalt
OSReport

Revision History

2014-10-20 Initial version.


CONFIDENTIAL