aboutsummaryrefslogtreecommitdiff
path: root/environment.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-07-14 14:13:23 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-07-14 14:13:23 -0400
commitd3f14cf53cf857b90184900a726e3ee0875dea80 (patch)
treeb1f89d5be1781ce4ed1384446bc53b51118d0350 /environment.h
parent4e6d8162bfa7149c3b947c6c759f82c1f52ef4d7 (diff)
Support nested lambda closures
Diffstat (limited to 'environment.h')
-rw-r--r--environment.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/environment.h b/environment.h
index be87b857..80723b0f 100644
--- a/environment.h
+++ b/environment.h
@@ -14,7 +14,8 @@ typedef struct {
CORD typeinfos;
} compilation_unit_t;
-typedef struct {
+typedef struct fn_ctx_s {
+ struct fn_ctx_s *parent;
type_t *return_type;
table_t *closure_scope;
table_t *closed_vars;