summaryrefslogtreecommitdiff
path: root/src/boot/assert.c
blob: 9ab6df2e12926b44bccae6ea44c154a8d3a7e79f (plain)
1
2
3
4
5
6
7
8
#include "global.h"

void __assert(const char* exp, const char* file, s32 line) {
    char msg[256];
    osSyncPrintf("Assertion failed: %s, file %s, line %d, thread %d\n", exp, file, line, osGetThreadId(NULL));
    sprintf(msg, "ASSERT: %s:%d(%d)", file, line, osGetThreadId(NULL));
    Fault_AddHungupAndCrashImpl(msg, exp);
}