Refactor structs to use methods instead of functions (#1322)

This commit is contained in:
Sylvie
2024-03-01 13:11:45 -05:00
committed by GitHub
parent e14ba664ea
commit 1ac3c0262f
18 changed files with 364 additions and 446 deletions

View File

@@ -8,7 +8,6 @@
#include <vector>
#include "linkdefs.hpp"
#include "platform.hpp" // NONNULL
extern uint8_t fillByte;
@@ -39,6 +38,8 @@ struct Section {
uint16_t alignOfs;
std::deque<Patch> patches;
std::vector<uint8_t> data;
bool isSizeKnown() const;
};
struct SectionSpec {
@@ -85,6 +86,4 @@ void sect_EndSection();
void sect_PushSection();
void sect_PopSection();
bool sect_IsSizeKnown(Section const NONNULL(name));
#endif // RGBDS_SECTION_H