#include <revolution/os.h>
void OSFatal ( GXColor fg, GXColor bg, const char* msg );
|
Foreground (text) color. The value of fg member a (the alpha value) is not used. |
|
Background (text) color. The value of bg member a (the alpha value) is not used. |
|
Pointer to the null-terminated string. |
None.
The OSFatal function immediately stops the running program and displays the specified text message on the TV screen. This function can even be called inside a callback function.
The following example demo shows how to hook the SDK assertion message for displaying the assertion failure message on a TV screen using the OSFatal function.
$REVOLUTION_SDK_ROOT/build/demos/osdemo/src/panic.c
Note: The OSFatal function uses the memory space above 18 MB for its work buffer.
Error Functions, ASSERT, ASSERTMSG,OSReport
03/01/2006 Initial version.