summaryrefslogtreecommitdiff
path: root/pez.h
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-10-08 22:44:44 +0200
committerlemon <lsof@mailbox.org>2022-10-08 22:44:44 +0200
commitd6524cc6cd8091f9d1bdef10dc932012e10c4314 (patch)
tree73e5fc4b17d3d5759fd432c0a4655b85ac6e7f46 /pez.h
parentf6b93fa139b4bbaa89a5e3e725f498275ca8d296 (diff)
more GC stuff
Diffstat (limited to 'pez.h')
-rw-r--r--pez.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/pez.h b/pez.h
index 08fce17..53d2d29 100644
--- a/pez.h
+++ b/pez.h
@@ -33,13 +33,15 @@ typedef struct PezContext PezContext;
typedef void *PezAllocFn(void *userdata, void *ptr, size_t oldsize, size_t newsize);
typedef bool PezCFn(PezContext *, int argc);
-PezContext *pez_new(PezAllocFn *alloc, void *userdata);
+PezContext *pez_new(PezAllocFn *alloc, void *userdata, size_t stacksize);
void pez_del(PezContext *);
/*
* opts:
* NULL -> reset debug options
* 'b': enable print bytecode to stderr
+ * 'G': stress GC
+ * 'g': print GC debug info
*/
void pez_debug(PezContext *, const char *opts);