aboutsummaryrefslogtreecommitdiffstats
path: root/forthmachine.h
diff options
context:
space:
mode:
authordan <me@danrh.co.uk>2023-06-03 14:47:52 -0400
committerdan <me@danrh.co.uk>2023-06-03 14:47:52 -0400
commit30553db7c86a70e43f956d385d317a1dfad9b2d0 (patch)
tree2493d74d5684d6ce82825397707d10a5ddd4a456 /forthmachine.h
parent48c02f4fccd13cf329594988a19a4edd1fce4774 (diff)
downloadforth-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.h3
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;