mirror of
https://github.com/gbdev/rgbds.git
synced 2026-08-20 05:44:32 +00:00
Creating a `Symbol` with `type = SYM_LABEL` but `section = nullptr` is inconsistent and dangerous. I was not able to cause any buggy behavior so far, but it's safer and reasonable to not create such a symbol in the first place. The main consequence is that `DEF(LabelOutsideSection)` will now evaluate as 0.
6 lines
227 B
Plaintext
6 lines
227 B
Plaintext
error: Cannot define label `lab` outside of a `SECTION`
|
|
at use-label-outside-section.asm(1)
|
|
error: Expected constant expression: undefined symbol `lab`
|
|
at use-label-outside-section.asm(3)
|
|
Assembly aborted with 2 errors
|