mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 02:32:06 +00:00
Some RGBLINK refactoring
- Consistently refer to `Section` fragments/unions as "pieces" (renaming `.nextu`) - Remove `Symbol`'s `.label()` accessors (use `std::get<Label>`) - Move some `Label`-related logic into `Symbol` methods
This commit is contained in:
@@ -189,10 +189,10 @@ static void mergeSections(Section &target, std::unique_ptr<Section> &&other) {
|
||||
}
|
||||
// LCOV_EXCL_STOP
|
||||
|
||||
// Note that the order in which fragments are stored in the `nextu` list does not
|
||||
// Note that the order in which fragments are stored in the `nextPiece` list does not
|
||||
// really matter, only that offsets were properly computed above
|
||||
other->nextu = std::move(target.nextu);
|
||||
target.nextu = std::move(other);
|
||||
other->nextPiece = std::move(target.nextPiece);
|
||||
target.nextPiece = std::move(other);
|
||||
}
|
||||
|
||||
void sect_AddSection(std::unique_ptr<Section> &§ion) {
|
||||
|
||||
Reference in New Issue
Block a user