diff options
| author | 2022-10-08 22:44:44 +0200 | |
|---|---|---|
| committer | 2022-10-08 22:44:44 +0200 | |
| commit | d6524cc6cd8091f9d1bdef10dc932012e10c4314 (patch) | |
| tree | 73e5fc4b17d3d5759fd432c0a4655b85ac6e7f46 /repl.c | |
| parent | f6b93fa139b4bbaa89a5e3e725f498275ca8d296 (diff) | |
more GC stuff
Diffstat (limited to 'repl.c')
| -rw-r--r-- | repl.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -32,15 +32,19 @@ help(void) "\n" " -h, --help show this help message\n" " -db debug: print bytecode\n" + " -dG debug: stress GC\n" + " -dg debug: print GC info\n" "\n"); } int main(int argc, char **argv) { - PezContext *cx = pez_new(NULL, NULL); + PezContext *cx = pez_new(NULL, NULL, 32*1024 /* 32KiB stack */); FILE *fp = NULL; int i, ret = 0; + assert(cx != NULL && "no context"); + for (i = 1; i < argc; ++i) { const char *arg = argv[i]; if (*arg == '-') { |