mirror of
https://github.com/gbdev/rgbds.git
synced 2026-09-20 20:57:06 +00:00
Use SectionTypeInfo struct member functions for section type info
This commit is contained in:
@@ -51,6 +51,8 @@ struct Section {
|
||||
std::vector<Symbol *> symbols;
|
||||
std::unique_ptr<Section> nextPiece; // The next fragment or union "piece" of this section
|
||||
|
||||
SectionTypeInfo const &typeInfo() const { return sectionTypeInfo[type]; }
|
||||
|
||||
private:
|
||||
// Template class for both const and non-const iterators over the "pieces" of this section
|
||||
template<QualifiedEquivalent<Section> SectionT>
|
||||
|
||||
Reference in New Issue
Block a user