Skip to content

Add newer Variant types to typed_array.h - #87992

Merged
akien-mga merged 1 commit into
godotengine:masterfrom
allenwp:87991-typed-array-additions
Feb 7, 2024
Merged

akien-mga merged 1 commit into
godotengine:masterfrom
allenwp:87991-typed-array-additions

Conversation

@allenwp

@allenwp allenwp commented Feb 5, 2024

Copy link
Copy Markdown
Contributor

Fixes #87991

This intentionally omits Object for reasons mentioned in the discussion of the original issue.

@allenwp
allenwp requested a review from a team as a code owner February 5, 2024 20:39
@AThousandShips AThousandShips added this to the 4.3 milestone Feb 5, 2024
@allenwp
allenwp marked this pull request as draft February 5, 2024 21:12
@allenwp
allenwp force-pushed the 87991-typed-array-additions branch from 70a17ce to fe9f124 Compare February 5, 2024 21:14
@fire

fire commented Feb 5, 2024 •

Copy link
Copy Markdown
Member

If it's ok, you could leave a comment mentioning the omission intentionally with reasoning.

@allenwp

allenwp commented Feb 5, 2024

Copy link
Copy Markdown
Contributor Author

If it's ok, you could leave a comment mentioning the omission intentionally with reasoning.

Good idea, I'll make that change.

@allenwp
allenwp force-pushed the 87991-typed-array-additions branch from fe9f124 to f4134fd Compare February 5, 2024 21:37
@Mickeon

Mickeon commented Feb 6, 2024

Copy link
Copy Markdown
Member

If the PR is a draft it cannot be considered ready for review, but the PR looks pretty "ready" to me. Are you sure this is still work in progress?

@allenwp

allenwp commented Feb 6, 2024

Copy link
Copy Markdown
Contributor Author

If the PR is a draft it cannot be considered ready for review, but the PR looks pretty "ready" to me. Are you sure this is still work in progress?

Yes, sorry, just needed to head home for the day yesterday — wanted to actually build it and test it after adding the INFO lines before taking it out of draft. (I put it back into draft when I realized I forgot to update these INFO lines). I plan to have this back in review in about 4 or 5 hours when I’m back in the office and can build again :)

@akien-mga akien-mga changed the title Added newer Variant types to typed_array.h Added newer Variant types to typed_array.h Feb 6, 2024
@Mickeon

Mickeon commented Feb 6, 2024

Copy link
Copy Markdown
Member

No worries! There's no rush, of course. I just wanted to make sure this was not a mistake.

allenwp added a commit to allenwp/godot-cpp that referenced this pull request Feb 6, 2024
allenwp added a commit to allenwp/godot-cpp that referenced this pull request Feb 6, 2024
@allenwp

allenwp commented Feb 6, 2024 •

Copy link
Copy Markdown
Contributor Author

No worries! There's no rush, of course. I just wanted to make sure this was not a mistake.

Thanks for the feedback! I'll make a note next time I leave something hanging -- I expect that it's not entirely unheard of for a PR to be left in an unmergable state.

I don't think I've a good job testing the MAKE_TYPED_ARRAY_INFO lines, but they at least build fine. I'll move this back out of draft.

@allenwp
allenwp marked this pull request as ready for review February 6, 2024 15:31
allenwp added a commit to allenwp/godot-cpp that referenced this pull request Feb 6, 2024
allenwp added a commit to allenwp/godot-cpp that referenced this pull request Feb 6, 2024
This is a companion commit to the godot PR godotengine/godot#87992 which fixes godotengine/godot#87991
Also syncs up change from godot to undefine typed array templates after use.
allenwp added a commit to allenwp/godot-cpp that referenced this pull request Feb 6, 2024
This is a companion commit to the godot PR godotengine/godot#87992 which fixes godotengine/godot#87991
Also undefines typed array templates after use to match Godot's typed_array.h
@akien-mga
akien-mga merged commit deda5f7 into godotengine:master Feb 7, 2024
@akien-mga

Copy link
Copy Markdown
Member

Thanks!

@allenwp
allenwp deleted the 87991-typed-array-additions branch February 7, 2024 12:32
enetheru pushed a commit to enetheru/godot-cpp that referenced this pull request Mar 12, 2024
This is a companion commit to the godot PR godotengine/godot#87992 which fixes godotengine/godot#87991
Also undefines typed array templates after use to match Godot's typed_array.h
@akien-mga akien-mga added the cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release label May 2, 2024
@akien-mga akien-mga changed the title Added newer Variant types to typed_array.h Add newer Variant types to typed_array.h May 7, 2024
@akien-mga akien-mga removed the cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release label Mar 19, 2025
BendyLand pushed a commit to BendyLand/voltaire that referenced this pull request Aug 2, 2026
…dditions

Added newer Variant types to `typed_array.h`
BendyLand pushed a commit to BendyLand/voltaire that referenced this pull request Aug 2, 2026
…dditions

Added newer Variant types to `typed_array.h`
wangshucheng pushed a commit to wangshucheng/godot that referenced this pull request Aug 27, 2026
…dditions

Added newer Variant types to `typed_array.h`
Shane-Gadsby pushed a commit to Shane-Gadsby/godotwebgpu that referenced this pull request Sep 21, 2026
…dditions

Added newer Variant types to `typed_array.h`
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.

C++ MAKE_TYPED_ARRAY does not include newer Variant types

5 participants