Skip to content
  • This project
    • Loading...
  • Sign in

Barry / rf-depot

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Graphs
  • Network
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • rf-depot
  • sw
  • n64os20l
  • libultra
  • monegi
  • debug
  • assert.c
  • root's avatar
    initial commit · bc83a1ad
    bc83a1ad
    root committed 2020-05-02 05:58:04 +0000
assert.c 309 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#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
}