From d6524cc6cd8091f9d1bdef10dc932012e10c4314 Mon Sep 17 00:00:00 2001 From: lemon Date: Sat, 8 Oct 2022 22:44:44 +0200 Subject: more GC stuff --- repl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'repl.c') diff --git a/repl.c b/repl.c index 9dae144..9aa7bab 100644 --- a/repl.c +++ b/repl.c @@ -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 == '-') { -- cgit v1.2.3