From 30553db7c86a70e43f956d385d317a1dfad9b2d0 Mon Sep 17 00:00:00 2001 From: dan <me@danrh.co.uk> Date: Sat, 3 Jun 2023 14:47:52 -0400 Subject: feat: optable errors handled with error handlers, not just by printing --- forthmachine.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'forthmachine.h') diff --git a/forthmachine.h b/forthmachine.h index a3a4522..4a55952 100644 --- a/forthmachine.h +++ b/forthmachine.h @@ -54,6 +54,7 @@ struct wordop { struct optable { int len; wordop* optable; + errorhandler errorhandler; }; /** @@ -64,7 +65,7 @@ wordop* optable_getop(optable* optable, char *word); void optable_defineop(optable* optable, char *input, int* starti); -optable* optable_new(); +optable* optable_new(errorhandler errorhandler); struct forthmachine { optable* ot; -- cgit v1.2.3