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

Add "null statements" to the compiler #1670

Merged
merged 2 commits into from
Feb 12, 2024

Conversation

wixoaGit
Copy link
Member

@wixoaGit wixoaGit commented Feb 12, 2024

Just a lone semicolon that represents a statement with nothing in it. Allows for suppressing EmptyBlock emissions.

/proc/main()
    if (TRUE) // Has no body, considered an empty block.
/proc/main()
    if (TRUE)
        ; // A null statement. Not considered an empty block.

Just a lone semicolon that represents a statement with nothing in it. Allows for suppressing EmptyBlock emissions.
@boring-cyborg boring-cyborg bot added the Compiler Involves the OpenDream compiler label Feb 12, 2024
@github-actions github-actions bot added size/M and removed size/S labels Feb 12, 2024
@wixoaGit wixoaGit enabled auto-merge (squash) February 12, 2024 18:36
@wixoaGit wixoaGit merged commit ca4f0b8 into OpenDreamProject:master Feb 12, 2024
7 checks passed
@ZeWaka
Copy link
Collaborator

ZeWaka commented Feb 12, 2024

Thanks! Sorry for not getting to this.

@wixoaGit wixoaGit deleted the null_statement branch February 12, 2024 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compiler Involves the OpenDream compiler size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants