diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-10-12 22:25:46 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-10-12 22:25:46 +0200 |
| commit | de6ecae0f072bb32be95382c536a517eabe4b1f1 (patch) | |
| tree | 2a337dea0f9b124da9436c16e80b7d8f3f8000fb /boot | |
| parent | da1e84e33de1a9c2cc1745b8f42bc7f0cee8fc5c (diff) | |
| download | elna-cpp.tar.gz | |
Diffstat (limited to 'boot')
| -rw-r--r-- | boot/evaluator.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/boot/evaluator.cc b/boot/evaluator.cc index a96d8ab..4eed818 100644 --- a/boot/evaluator.cc +++ b/boot/evaluator.cc @@ -299,14 +299,7 @@ namespace elna::boot { return constant->value; } - const std::shared_ptr<variable_info> variable = symbol->is_variable(); - - if (variable == nullptr - || resolve_aliases(variable->symbol).get<constant_type>() == nullptr) - { - return std::nullopt; - } - return variable->value; + return std::nullopt; } std::optional<constant_value> evaluator::evaluate_array_access(array_access_expression& subject) |
