mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Use a patch_AddAssertion function instead of extern assertions
This commit is contained in:
@@ -56,15 +56,6 @@ struct Section {
|
||||
std::unique_ptr<Section> nextu; // The next "component" of this unionized sect
|
||||
};
|
||||
|
||||
struct Assertion {
|
||||
Patch patch; // Also used for its `.type`
|
||||
std::string message;
|
||||
// This would be redundant with `.section->fileSymbols`, but `section` is sometimes `nullptr`!
|
||||
std::vector<Symbol> *fileSymbols;
|
||||
};
|
||||
|
||||
extern std::deque<Assertion> assertions;
|
||||
|
||||
// Execute a callback for each section currently registered.
|
||||
// This is to avoid exposing the data structure in which sections are stored.
|
||||
void sect_ForEach(void (*callback)(Section &));
|
||||
|
||||
Reference in New Issue
Block a user