mirror of
https://github.com/gbdev/rgbds.git
synced 2026-11-29 14:58:40 +00:00
Use a vector for emitting section patches
Turns out this makes errors be emitted in source order, which is far more intuitive and pleasant-looking!
This commit is contained in:
1 parent
6883dd903e
commit
d766efe95d
12 files changed
+60
-61
No files matched your search
@@ -3,7 +3,6 @@
|
||||
#ifndef RGBDS_ASM_SECTION_HPP
|
||||
#define RGBDS_ASM_SECTION_HPP
|
||||
|
||||
#include <deque>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <stddef.h>
|
||||
@@ -39,7 +38,7 @@ struct Section {
|
||||
uint32_t bank;
|
||||
uint8_t align; // Exactly as specified in `ALIGN[]`
|
||||
uint16_t alignOfs;
|
||||
std::deque<Patch> patches;
|
||||
std::vector<Patch> patches;
|
||||
std::vector<uint8_t> data;
|
||||
|
||||
SectionTypeInfo const &typeInfo() const { return sectionTypeInfo[type]; }
|
||||
|
||||
Reference in new issue
Block a user