From 2e5f6c20ebfb350127432bb71b36c58a44a65e80 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 26 Apr 2025 01:58:18 -0400 Subject: Add TOMO_VERSION as a variable accessible to tomo programs at runtime --- src/environment.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/environment.c') diff --git a/src/environment.c b/src/environment.c index 651bc9ca..8bf77733 100644 --- a/src/environment.c +++ b/src/environment.c @@ -516,6 +516,7 @@ env_t *global_env(bool source_mapping) const char *name, *code, *type_str; } global_vars[] = { {"USE_COLOR", "USE_COLOR", "Bool"}, + {"TOMO_VERSION", "TOMO_VERSION_TEXT", "Text"}, {"say", "say", "func(text:Text, newline=yes)"}, {"print", "say", "func(text:Text, newline=yes)"}, {"getenv", "getenv_text", "func(name:Text -> Text?)"}, -- cgit v1.2.3