summaryrefslogtreecommitdiff
path: root/repl.c
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 /repl.c
parentf6b93fa139b4bbaa89a5e3e725f498275ca8d296 (diff)
more GC stuff
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 == '-') {