From 401a9f0cc7b5792d11e4c9b889578ff0f110d65e Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 16 Dec 2023 11:48:12 +0000 Subject: Move exceptions code to patio directory --- runtime/src/exceptions.c | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 runtime/src/exceptions.c (limited to 'runtime/src/exceptions.c') diff --git a/runtime/src/exceptions.c b/runtime/src/exceptions.c deleted file mode 100644 index deaaa25b..00000000 --- a/runtime/src/exceptions.c +++ /dev/null @@ -1,25 +0,0 @@ -#ifndef __WASM__ - -#include -#include -#include - -uint32_t 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) { - if (patio__runtime__exceptions_exception_handler == 0) { - exit(1); - } - patio__runtime__exceptions_exception_value = value; - _longjmp(*patio__runtime__exceptions_exception_handler, exception_tag); -} - -void patio__runtime__exceptions_rethrow(uint32_t exception_tag) { - if (patio__runtime__exceptions_exception_handler == 0) { - exit(1); - } - _longjmp(*patio__runtime__exceptions_exception_handler, exception_tag); -} - -#endif -- cgit v1.2.3