summaryrefslogtreecommitdiff
path: root/src/utils.c
blob: 63b0b564343b8d53821c441535b88fc78173d3af (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "utils.h"

void macaroni_panic(char* msg) {
    // we'll do something with msg later.
    // while(true){ asm("nop\n\t"); }
    asm("int $0x13");
}

void macaroni_assert(bool condition, char* msg) {
    if (condition) {
        return;
    }
    macaroni_panic("thisisatest");
}