From d3f14cf53cf857b90184900a726e3ee0875dea80 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 14 Jul 2024 14:13:23 -0400 Subject: Support nested lambda closures --- environment.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'environment.h') 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; -- cgit v1.2.3