assert.c
309 Bytes
#include <rmon.h>
#include "osint.h"
extern void __assertBreak(void);
void
__assert(const char* expr, const char *file, int linenum)
{
#ifndef _FINALROM
osSyncPrintf("\nASSERTION FAULT: %s, %d: \"%s\"\n", file, linenum, expr);
/* Execute a break instruction to invoke rmon */
__assertBreak;
#endif
}