diff options
Diffstat (limited to 'src/utils.c')
| -rw-r--r-- | src/utils.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/utils.c b/src/utils.c new file mode 100644 index 0000000..63b0b56 --- /dev/null +++ b/src/utils.c @@ -0,0 +1,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"); +}
\ No newline at end of file |
