mirror of
https://github.com/gbdev/rgbds.git
synced 2026-06-10 02:32:34 +00:00
Refactor section creation errors, and simplify output for single errors (#1964)
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
error: Section already defined
|
||||
FATAL: Section "dup" already defined
|
||||
at duplicate-section-after-literal.asm(7)
|
||||
and also:
|
||||
at duplicate-section-after-literal.asm(5)
|
||||
FATAL: Cannot create section "dup" (1 error)
|
||||
at duplicate-section-after-literal.asm(7)
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
error: Section already defined
|
||||
FATAL: Section "sec" already defined
|
||||
at duplicate-section.asm(4)
|
||||
and also:
|
||||
at duplicate-section.asm(2)
|
||||
FATAL: Cannot create section "sec" (1 error)
|
||||
at duplicate-section.asm(4)
|
||||
|
||||
@@ -1,4 +1,2 @@
|
||||
error: Section already declared as fixed at incompatible address $c002
|
||||
at fragment-align-mismatch.asm(2)
|
||||
FATAL: Cannot create section "aligned" (1 error)
|
||||
FATAL: Section "aligned" already declared as fixed at incompatible address $c002
|
||||
at fragment-align-mismatch.asm(2)
|
||||
|
||||
@@ -1,4 +1,2 @@
|
||||
error: Section already declared as fixed at incompatible address $0000
|
||||
at fragment-mismatch.asm(2)
|
||||
FATAL: Cannot create section "test" (1 error)
|
||||
FATAL: Section "test" already declared as fixed at incompatible address $0000
|
||||
at fragment-mismatch.asm(2)
|
||||
|
||||
@@ -1,4 +1,2 @@
|
||||
error: Section already declared with incompatible 256-byte alignment (offset 0)
|
||||
at incompatible-alignment.asm(8)
|
||||
FATAL: Cannot create section "Test" (1 error)
|
||||
FATAL: Section "Test" already declared with incompatible 256-byte alignment (offset 0)
|
||||
at incompatible-alignment.asm(8)
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
SECTION FRAGMENT "test", ROM0[$0000]
|
||||
|
||||
SECTION FRAGMENT "test", ROMX[$4000]
|
||||
@@ -0,0 +1,6 @@
|
||||
error: Section "test" already exists but with type `ROM0`
|
||||
at multiple-section-errors.asm(3)
|
||||
error: Section "test" already declared as fixed at incompatible address $0000
|
||||
at multiple-section-errors.asm(3)
|
||||
FATAL: Cannot create section "test" (2 errors)
|
||||
at multiple-section-errors.asm(3)
|
||||
@@ -1,4 +1,2 @@
|
||||
error: Section already declared as fixed at different address $c000
|
||||
at section-union-mismatch.asm(2)
|
||||
FATAL: Cannot create section "test" (1 error)
|
||||
FATAL: Section "test" already declared as fixed at different address $c000
|
||||
at section-union-mismatch.asm(2)
|
||||
|
||||
@@ -1,4 +1,2 @@
|
||||
error: Section already declared as `SECTION UNION`
|
||||
at section-union.asm(37)
|
||||
FATAL: Cannot create section "test" (1 error)
|
||||
FATAL: Section "test" already declared as `SECTION UNION`
|
||||
at section-union.asm(37)
|
||||
|
||||
@@ -1,4 +1,2 @@
|
||||
error: Section already declared as fixed at incompatible address $c001
|
||||
at union-mismatch.asm(2)
|
||||
FATAL: Cannot create section "fixed" (1 error)
|
||||
FATAL: Section "fixed" already declared as fixed at incompatible address $c001
|
||||
at union-mismatch.asm(2)
|
||||
|
||||
Reference in New Issue
Block a user