From 3dc947a7575bd23703644996d8e853e5e618b2e3 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Thu, 9 Nov 2023 08:08:38 -0500 Subject: fix execute; disable verify(); bench w/ standalone --- libalee/state.hpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'libalee/state.hpp') diff --git a/libalee/state.hpp b/libalee/state.hpp index 2e69463..abf7a1e 100644 --- a/libalee/state.hpp +++ b/libalee/state.hpp @@ -25,6 +25,8 @@ #include #include +#define verify(C, E) + constexpr unsigned DataStackSize = 64; constexpr unsigned ReturnStackSize = 64; @@ -57,6 +59,10 @@ public: */ void reset(); + void exit() { + std::longjmp(context.jmpbuf, static_cast(Error::exit)); + } + Addr& ip() noexcept { return context.ip; } @@ -129,10 +135,10 @@ public: return dict.read(context.ip); } - inline void verify(bool condition, Error error) { - if (!condition) - std::longjmp(context.jmpbuf, static_cast(error)); - } +// inline void verify(bool condition, Error error) { +// if (!condition) +// std::longjmp(context.jmpbuf, static_cast(error)); +// } private: InputFunc inputfunc; // User-provided function to collect "stdin" input. -- cgit v1.2.3