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

Consolidate struct definition #229

Merged
merged 1 commit into from
Apr 7, 2024

Conversation

TotallyGamerJet
Copy link
Collaborator

The struct on Cgo non-amd64 and non-arm64 platforms didn't have the struct fields updated. To avoid forgetting to update all the structs I've moved it where every platform shares the same type def.

Closes #228

To avoid forgetting to update all the structs I've moved it where every platform shares the same type def.

Closes ebitengine#228
@TotallyGamerJet
Copy link
Collaborator Author

We should probably add a test for non-standard platforms but this would require a C compiler.

@hajimehoshi
Copy link
Member

Thanks.

We should probably add a test for non-standard platforms but this would require a C compiler.

We would need a cross compiler or QEMU. It'd be nice to have.

Copy link
Member

@hajimehoshi hajimehoshi left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Copy link
Member

@hajimehoshi hajimehoshi left a comment

Choose a reason for hiding this comment

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

Let me ask a question...

Copy link
Member

@hajimehoshi hajimehoshi left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@TotallyGamerJet
Copy link
Collaborator Author

So doing a separate commit for tests?

@hajimehoshi
Copy link
Member

So doing a separate commit for tests?

If this is easy, it is better to have a test in this pr. If not, a sperate pr is fine. I thought it was not easy.

@TotallyGamerJet
Copy link
Collaborator Author

I don't think it'll be easy

@hajimehoshi
Copy link
Member

Ok, then let's add a test later in a separate pr :-)

@TotallyGamerJet TotallyGamerJet merged commit 0e63021 into ebitengine:main Apr 7, 2024
20 checks passed
@TotallyGamerJet TotallyGamerJet deleted the fix-228 branch April 7, 2024 11:16
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.

Error on Android: too few values in struct literal of type syscall15Args
2 participants