aboutsummaryrefslogtreecommitdiffstats
path: root/forthmachine.c
diff options
context:
space:
mode:
authordan <[email protected]>2023-06-03 14:47:52 -0400
committerdan <[email protected]>2023-06-03 14:47:52 -0400
commit30553db7c86a70e43f956d385d317a1dfad9b2d0 (patch)
tree2493d74d5684d6ce82825397707d10a5ddd4a456 /forthmachine.c
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.c')
-rw-r--r--forthmachine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/forthmachine.c b/forthmachine.c
index a421630..6cdefb5 100644
--- a/forthmachine.c
+++ b/forthmachine.c
@@ -8,7 +8,7 @@
forthmachine* forthmachine_new(errorhandler errorhandler) {
forthmachine* fm = (forthmachine*)malloc(sizeof(forthmachine));
- fm->ot = optable_new();
+ fm->ot = optable_new(errorhandler);
fm->s = stack_new(errorhandler);
fm->outputbuffer = (char*)malloc(sizeof(char) * MAX_OUTPUT_BUFFER_SIZE);
fm->errorhandler = errorhandler;