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

Fix bindings generator range iterator errors #50861

Merged
merged 1 commit into from
Jul 25, 2021

Conversation

raulsntos
Copy link
Member

Fixes errors in the binding_generators.cpp caused by PRs #50511 and #50809.

Please, keep in mind I'm not super knowledgeable about C++ so maybe there is a better way to fix this.

@raulsntos raulsntos requested a review from a team as a code owner July 25, 2021 16:48
Copy link
Member

@aaronfranke aaronfranke left a comment

Choose a reason for hiding this comment

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

Works for me.

@@ -1686,7 +1686,7 @@ Error BindingsGenerator::_generate_cs_method(const BindingsGenerator::TypeInterf
// Add the current arguments to the signature
// If the argument has a default value which is not a constant, we will make it Nullable
{
if (F != p_imethod.arguments.front()) {
if (&F != &(p_imethod.arguments.front()->get())) {
Copy link
Member

Choose a reason for hiding this comment

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

For the .front() ones, the other option is to do what we did in #50828.

@raulsntos raulsntos force-pushed the fix-bindings-generator branch from e3d8b35 to b3274a7 Compare July 25, 2021 19:33
@neikeq neikeq merged commit 8932b55 into godotengine:master Jul 25, 2021
@neikeq
Copy link
Contributor

neikeq commented Jul 25, 2021

Thanks!

@raulsntos raulsntos deleted the fix-bindings-generator branch July 25, 2021 21:30
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.

3 participants