mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Refactor structs to use methods instead of functions (#1322)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user