aboutsummaryrefslogtreecommitdiff
path: root/boot/symbol.cc
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-08-25 23:41:18 +0200
committerEugen Wissner <belka@caraus.de>2026-08-25 23:41:18 +0200
commit81370291c039593a9886c7b3f776ca55a2858f0d (patch)
tree47e12c5263e7784d3f0fc75fbbf6d791291e2230 /boot/symbol.cc
parentdf51f9c4ee0ee4ac22206513bcd60e6928b7eaeb (diff)
downloadelna-81370291c039593a9886c7b3f776ca55a2858f0d.tar.gz
Reject circular imports
Diffstat (limited to 'boot/symbol.cc')
-rw-r--r--boot/symbol.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/boot/symbol.cc b/boot/symbol.cc
index b32782e..fcafae4 100644
--- a/boot/symbol.cc
+++ b/boot/symbol.cc
@@ -409,9 +409,9 @@ namespace elna::boot
return unresolved_declaration;
}
- void symbol_bag::add_import(const symbol_bag& bag)
+ void symbol_bag::add_import(const std::shared_ptr<symbol_table>& symbols)
{
- this->imports.push_front(bag.exported_symbols());
+ this->imports.push_front(symbols);
}
bool symbol_bag::is_global() const