diff options
author | Bad Diode <bd@badd10de.dev> | 2021-10-17 12:51:51 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2021-10-17 12:51:51 +0200 |
commit | dbeab0d63b21c14e9c462c08c8f776e9428b853c (patch) | |
tree | 12f0964fbe6257182f90a40de3a76abef9404ac3 /src/bootstrap/main.c | |
parent | 54060b06acd084f75bfda00517479902a5652391 (diff) | |
download | bdl-dbeab0d63b21c14e9c462c08c8f776e9428b853c.tar.gz bdl-dbeab0d63b21c14e9c462c08c8f776e9428b853c.zip |
Add stack protection for recursive funcs
Diffstat (limited to 'src/bootstrap/main.c')
-rwxr-xr-x | src/bootstrap/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bootstrap/main.c b/src/bootstrap/main.c index 66b1300..7251e60 100755 --- a/src/bootstrap/main.c +++ b/src/bootstrap/main.c | |||
@@ -47,6 +47,7 @@ init(void) { | |||
47 | global_env = env_create(NULL); | 47 | global_env = env_create(NULL); |
48 | // TODO: make sure we create symbols and strings only once (interning | 48 | // TODO: make sure we create symbols and strings only once (interning |
49 | // strings?) | 49 | // strings?) |
50 | push_active_env(global_env); | ||
50 | 51 | ||
51 | // Primitive symbols. | 52 | // Primitive symbols. |
52 | MAKE_ENV_VAR(global_env, "else", obj_true); | 53 | MAKE_ENV_VAR(global_env, "else", obj_true); |