summaryrefslogtreecommitdiff
path: root/lib/ultralib/src/debug/assert.c
blob: ab7e31368413105cfafd826f49c837e7b9397387 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "os.h"
#include "../os/osint.h"
#include "osint_debug.h"

void __assertBreak(void);

void __assert(const char* exp, const char* filename, int line) {
#ifndef _FINALROM
    osSyncPrintf("\nASSERTION FAULT: %s, %d: \"%s\"\n", filename, line, exp);
    __assertBreak; // Doesn't actually do anything, but is needed for matching
#endif
}