diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-08-29 10:03:11 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-08-29 10:03:11 +0200 |
| commit | 08d9c4292ebba3e320c1dbaca4fa06c83f6fc7fb (patch) | |
| tree | 6ab464ecb3478eb958c75e696e90a9d04f9a1b80 /boot/symbol.cc | |
| parent | 8e655a0786aec5e0215e09f2a9629c6f32e34793 (diff) | |
| download | elna-08d9c4292ebba3e320c1dbaca4fa06c83f6fc7fb.tar.gz | |
Fix procedure order resolution
Diffstat (limited to 'boot/symbol.cc')
| -rw-r--r-- | boot/symbol.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/boot/symbol.cc b/boot/symbol.cc index 7ef09c9..4d6832d 100644 --- a/boot/symbol.cc +++ b/boot/symbol.cc @@ -420,6 +420,11 @@ namespace elna::boot return unresolved_declaration; } + bool symbol_bag::forward_declare(const std::string& symbol_name, std::shared_ptr<alias_type> forward_declaration) + { + return this->unresolved.insert({ symbol_name, std::move(forward_declaration) }).second; + } + void symbol_bag::add_import(const std::shared_ptr<symbol_table>& symbols) { this->imports.push_front(symbols); |
