diff options
author | dan <[email protected]> | 2023-06-03 14:47:52 -0400 |
---|---|---|
committer | dan <[email protected]> | 2023-06-03 14:47:52 -0400 |
commit | 30553db7c86a70e43f956d385d317a1dfad9b2d0 (patch) | |
tree | 2493d74d5684d6ce82825397707d10a5ddd4a456 /forthmachine.c | |
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.c')
-rw-r--r-- | forthmachine.c | 2 |
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; |