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 metadata for char16_t and char32_t #95840

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

raulsntos
Copy link
Member

We don't seem to expose any API that uses char16_t yet, but I added it anyway since we make the type info for it.

I didn't add anything for wchar_t because we are not making a type info so maybe we don't have a need for it yet, it could be added in the future.

To prevent breaking compatibility with the C# bindings, we ignore the char32_t metadata and still use System.Int64.

@dsnopek
Copy link
Contributor

dsnopek commented Aug 22, 2024

Thanks! This looks good to me.

The CI situation is going to be a little weird. In order to prevent a circular dependency between the CI of Godot and godot-cpp, we run godot-cpp N-1 in the Godot tests. So, maybe we'll need to cherry-pick the change to recognize char32/char16 to the 4.3 branch, even though Godot 4.3 won't generate those meta values? Should be harmless in any case, I think

@raulsntos raulsntos marked this pull request as ready for review August 23, 2024 01:24
@raulsntos raulsntos requested review from a team as code owners August 23, 2024 01:24
@raulsntos
Copy link
Member Author

Oh, I didn't realize we weren't using the master branch in CI for the godot-cpp workflow. I think it should be safe to cherry-pick the change in godot-cpp.

We don't seem to expose any API that uses `char16_t` yet, but I added it anyway since we make the type info for it.

I didn't add anything for `wchar_t` because we are not making a type info so maybe we don't have a need for it yet, it could be added in the future.

To prevent breaking compatibility with the C# bindings, we ignore the `char32_t` metadata and still use `System.Int64`.
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.

Yay, CI is passing now! These changes look good to me

@akien-mga akien-mga modified the milestones: 4.x, 4.4 Sep 12, 2024
@akien-mga akien-mga merged commit f8fbb86 into godotengine:master Sep 12, 2024
20 checks passed
@akien-mga
Copy link
Member

Thanks!

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