diff options
author | dan <me@danrh.co.uk> | 2023-06-03 14:47:52 -0400 |
---|---|---|
committer | dan <me@danrh.co.uk> | 2023-06-03 14:47:52 -0400 |
commit | 30553db7c86a70e43f956d385d317a1dfad9b2d0 (patch) | |
tree | 2493d74d5684d6ce82825397707d10a5ddd4a456 /forthmachine.h | |
parent | 48c02f4fccd13cf329594988a19a4edd1fce4774 (diff) | |
download | forth-30553db7c86a70e43f956d385d317a1dfad9b2d0.tar.gz forth-30553db7c86a70e43f956d385d317a1dfad9b2d0.tar.bz2 forth-30553db7c86a70e43f956d385d317a1dfad9b2d0.zip |
feat: optable errors handled with error handlers, not just by printing
Diffstat (limited to 'forthmachine.h')
-rw-r--r-- | forthmachine.h | 3 |
1 files changed, 2 insertions, 1 deletions
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; |