Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ENDL optional like ENDSECTION #1538

Merged
merged 3 commits into from
Oct 16, 2024
Merged

Conversation

Rangi42
Copy link
Contributor

@Rangi42 Rangi42 commented Oct 8, 2024

Fixes #1534

@Rangi42 Rangi42 added enhancement Typically new features; lesser priority than bugs rgbasm This affects RGBASM labels Oct 8, 2024
@Rangi42 Rangi42 added this to the v0.9.0 milestone Oct 8, 2024
@Rangi42 Rangi42 requested a review from ISSOtm October 8, 2024 20:54
Copy link
Member

@ISSOtm ISSOtm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change itself makes sense, IMO, but I'm also wondering whether we may want to introduce a -Wunclosed-load warning? Probably in -Wextra, if anywhere. (I'm not concerned about -Wunclosed-section, because the difference is that forgetting to close a LOAD can end up over-reserving RAM without producing an error, whereas directives that work inside of a SECTION are not affected by the presence of one.)

@Rangi42
Copy link
Contributor Author

Rangi42 commented Oct 16, 2024

Done! I've added -Wunterminated-load.

Copy link
Member

@ISSOtm ISSOtm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the thorough testing!

contrib/bash_compl/_rgbasm.bash Show resolved Hide resolved
@Rangi42 Rangi42 requested a review from ISSOtm October 16, 2024 00:44
@Rangi42 Rangi42 merged commit 3b32632 into gbdev:master Oct 16, 2024
22 checks passed
@Rangi42 Rangi42 deleted the endl-optional branch October 16, 2024 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Typically new features; lesser priority than bugs rgbasm This affects RGBASM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing ENDL after LOAD is not an error
2 participants