summaryrefslogtreecommitdiff
path: root/repl.c
diff options
context:
space:
mode:
Diffstat (limited to 'repl.c')
-rw-r--r--repl.c6
1 files changed, 5 insertions, 1 deletions
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 == '-') {