diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-10-09 23:35:03 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-10-09 23:35:03 +0200 |
| commit | da1e84e33de1a9c2cc1745b8f42bc7f0cee8fc5c (patch) | |
| tree | 6222ecd61c9d6e9d59c6169b99e4a24a5d347fea /boot/evaluator.cc | |
| parent | 134d3ac4caff6d87c79b0892e57073594cb0064c (diff) | |
| download | elna-da1e84e33de1a9c2cc1745b8f42bc7f0cee8fc5c.tar.gz | |
Add const sections
Diffstat (limited to 'boot/evaluator.cc')
| -rw-r--r-- | boot/evaluator.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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_info> constant = symbol->is_constant()) + { + return constant->value; + } const std::shared_ptr<variable_info> variable = symbol->is_variable(); if (variable == nullptr |
