mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Prevent assertions outside sections from crashing
This commit is contained in:
@@ -22,6 +22,11 @@ struct Assertion {
|
||||
// enum AssertionType type; The `patch`'s field is instead re-used
|
||||
struct Section *section;
|
||||
char *message;
|
||||
/*
|
||||
* This would be redundant with `.section->fileSymbols`... but
|
||||
* `section` is sometimes NULL!
|
||||
*/
|
||||
struct Symbol ** fileSymbols;
|
||||
|
||||
struct Assertion *next;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user