Skip to content

Translate return; to return 0;#47

Merged
parttimenerd merged 1 commit intoparttimenerd:mainfrom
Mr-Pine:void-return
Apr 17, 2025
Merged

Translate return; to return 0;#47
parttimenerd merged 1 commit intoparttimenerd:mainfrom
Mr-Pine:void-return

Conversation

@Mr-Pine
Copy link
Contributor

@Mr-Pine Mr-Pine commented Apr 17, 2025

Since the compiler plugin translates methods returning void to int functions in C, it should also translate returns without a value to returns with an int.

@parttimenerd parttimenerd merged commit 53a7ef2 into parttimenerd:main Apr 17, 2025
2 checks passed
@Mr-Pine Mr-Pine deleted the void-return branch April 28, 2025 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants