diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-12-16 14:44:11 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-12-16 14:44:11 +0000 |
| commit | 08352d48adf0052fb7fe1ca6690af4381a1dae2a (patch) | |
| tree | 9454a79c413acf9808d6e1bbc3df7b2ea4df7f70 /runtime/src | |
| parent | 9bbc9fb8a4666e7c084f56916e993cb07ea4dabd (diff) | |
Use PatioInt for Patio exception values
Diffstat (limited to 'runtime/src')
| -rw-r--r-- | runtime/src/patio/exceptions.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/src/patio/exceptions.c b/runtime/src/patio/exceptions.c index deaaa25b..e465b4f6 100644 --- a/runtime/src/patio/exceptions.c +++ b/runtime/src/patio/exceptions.c @@ -4,10 +4,12 @@ #include <stdint.h> #include <stdlib.h> -uint32_t patio__runtime__exceptions_exception_value; +#include "./patio.h" + +PatioInt patio__runtime__exceptions_exception_value; jmp_buf* patio__runtime__exceptions_exception_handler = 0; -void patio__runtime__exceptions_throw(uint32_t exception_tag, uint64_t value) { +void patio__runtime__exceptions_throw(uint32_t exception_tag, PatioInt value) { if (patio__runtime__exceptions_exception_handler == 0) { exit(1); } |
