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

Replace GDVIRTUAL_CALL with GDVIRTUAL_REQUIRED_CALL where applicable #86169

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

Repiteo
Copy link
Contributor

@Repiteo Repiteo commented Dec 14, 2023

A handful of GDVIRTUAL_CALL implementations were used as booleans for a check exclusively to see if they're implemented, throwing an error if they weren't. This functionality is already present in GDVIRTUAL_REQUIRED_CALL, though it was added later on compared to the bulk of these implementations, so this PR updates them accordingly.

Copy link
Contributor

@dsnopek dsnopek left a comment

Choose a reason for hiding this comment

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

Thanks!

I didn't test this, but the code changes look correct: the result should be same for each of the changed instances. This will be good clean-up :-)

@dsnopek dsnopek added the cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release label Dec 20, 2023
@YuriSizov YuriSizov modified the milestones: 4.x, 4.3 Dec 20, 2023
@YuriSizov YuriSizov merged commit f77da03 into godotengine:master Dec 20, 2023
15 checks passed
@YuriSizov
Copy link
Contributor

Thanks!

@Repiteo Repiteo deleted the gdvirtual-call-refactoring branch December 20, 2023 14:20
@akien-mga
Copy link
Member

Cherry-picked for 4.2.2.

@akien-mga akien-mga removed the cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release label Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants