diff options
author | dan <me@danrh.co.uk> | 2023-06-03 14:41:14 -0400 |
---|---|---|
committer | dan <me@danrh.co.uk> | 2023-06-03 14:41:14 -0400 |
commit | 48c02f4fccd13cf329594988a19a4edd1fce4774 (patch) | |
tree | a92d6af027aa5b9d3368801b770179cc83a928f3 /stack.h | |
parent | f130b76fabb440b02c418a537074ec80489a9480 (diff) | |
download | forth-48c02f4fccd13cf329594988a19a4edd1fce4774.tar.gz forth-48c02f4fccd13cf329594988a19a4edd1fce4774.tar.bz2 forth-48c02f4fccd13cf329594988a19a4edd1fce4774.zip |
feat: forthmachine and stack errors handled with error handlers, not just by printing
Diffstat (limited to 'stack.h')
-rw-r--r-- | stack.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,6 @@ #include <stdlib.h> #include <stdio.h> +#include "errorhandler.h" #ifndef STACK_H #define STACK_H @@ -10,9 +11,10 @@ typedef struct { int size; int maxsize; stackitem* start; + errorhandler errorhandler; } stack; -stack* stack_new(); +stack* stack_new(errorhandler errorhandler); void stack_free(stack* s); |