Make RGBDS behave identically whether writing a .o

Some errors are only tripped in `out_WriteObject`, which was
basically a stub when `-o` wasn't specified. Now, instead,
errors are checked in a separate function before out_WriteFile
This commit is contained in:
ISSOtm
2019-08-30 22:06:41 +02:00
parent 631910bd67
commit b44f5825a5
3 changed files with 36 additions and 17 deletions

View File

@@ -40,6 +40,7 @@ void out_AbsByteGroup(char *s, int32_t length);
void out_RelByte(struct Expression *expr);
void out_RelWord(struct Expression *expr);
void out_PCRelByte(struct Expression *expr);
void out_CheckErrors(void);
void out_WriteObject(void);
void out_Skip(int32_t skip);
void out_BinaryFile(char *s);