diff options
| author | 2022-10-08 22:44:44 +0200 | |
|---|---|---|
| committer | 2022-10-08 22:44:44 +0200 | |
| commit | d6524cc6cd8091f9d1bdef10dc932012e10c4314 (patch) | |
| tree | 73e5fc4b17d3d5759fd432c0a4655b85ac6e7f46 /pez.h | |
| parent | f6b93fa139b4bbaa89a5e3e725f498275ca8d296 (diff) | |
more GC stuff
Diffstat (limited to 'pez.h')
| -rw-r--r-- | pez.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |