aboutsummaryrefslogtreecommitdiff
path: root/environment.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-08-17 14:41:31 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-08-17 14:41:31 -0400
commitcbe117a6d3c1f9e9167b671c752cde978c4ea8d1 (patch)
tree4d1ae5462d7668b0c0291a9b45bf4cc1e596a37e /environment.h
parentbac188ce07b957807d4c649cb5d4e5e253360278 (diff)
Allow for top-level or namespace-level variables that are initialized
with non-constant values by the use of an initializer function and runtime checks for whether the variable is initialized.
Diffstat (limited to 'environment.h')
-rw-r--r--environment.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/environment.h b/environment.h
index 3957bd13..edaff809 100644
--- a/environment.h
+++ b/environment.h
@@ -12,6 +12,7 @@ typedef struct {
CORD staticdefs;
CORD funcs;
CORD typeinfos;
+ CORD variable_initializers;
} compilation_unit_t;
typedef struct fn_ctx_s {