mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Report error when aligning outside of a section
This commit is contained in:
@@ -378,6 +378,7 @@ uint32_t sect_GetOutputOffset(void)
|
||||
|
||||
void sect_AlignPC(uint8_t alignment, uint16_t offset)
|
||||
{
|
||||
checksection();
|
||||
struct Section *sect = sect_GetSymbolSection();
|
||||
|
||||
if (sect->org != -1) {
|
||||
|
||||
Reference in New Issue
Block a user