summaryrefslogtreecommitdiff
path: root/soh/src/boot/assert.c
blob: b7895ddddae413603e9d82d7a5cae04e469093d2 (plain)
1
2
3
4
5
6
7
8
9
#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);
}