diff options
| author | Elizabeth Alexander Hunt <me@liz.coffee> | 2026-10-09 09:06:04 -0700 |
|---|---|---|
| committer | Elizabeth Alexander Hunt <me@liz.coffee> | 2026-10-09 09:06:04 -0700 |
| commit | c74bd1baa844eac1fcb17a266ef720ed0c1ae616 (patch) | |
| tree | 9b5c7699c8704b0930daeddffa568990254a231b /src/utils.c | |
| parent | f021512078e7d2447e46a4856a81c0ba6e030d43 (diff) | |
| download | macaroni-c74bd1baa844eac1fcb17a266ef720ed0c1ae616.tar.gz macaroni-c74bd1baa844eac1fcb17a266ef720ed0c1ae616.zip | |
Bit o a refactah
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 |
