From da1e84e33de1a9c2cc1745b8f42bc7f0cee8fc5c Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Fri, 9 Oct 2026 23:35:03 +0200 Subject: Add const sections --- boot/evaluator.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'boot/evaluator.cc') diff --git a/boot/evaluator.cc b/boot/evaluator.cc index 78eb4cd..a96d8ab 100644 --- a/boot/evaluator.cc +++ b/boot/evaluator.cc @@ -295,6 +295,10 @@ namespace elna::boot { return std::nullopt; } + if (const std::shared_ptr constant = symbol->is_constant()) + { + return constant->value; + } const std::shared_ptr variable = symbol->is_variable(); if (variable == nullptr -- cgit v1.2.3