Skip to content

purego: support pointer-sized struct args in callbacks#419

Open
tmc wants to merge 2 commits intoebitengine:mainfrom
tmc:callback-pointerlike-structargs
Open

purego: support pointer-sized struct args in callbacks#419
tmc wants to merge 2 commits intoebitengine:mainfrom
tmc:callback-pointerlike-structargs

Conversation

@tmc
Copy link
Contributor

@tmc tmc commented Feb 23, 2026

What issue is this addressing?

Closes #418

What type of issue is this addressing?

feature

What this PR does | solves

Allow callbacks to accept struct arguments that fit in one pointer-sized slot, and decode those struct arguments in callbackWrap instead of treating all non-CDecl structs as unsupported/zero.

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.

Support pointer-sized struct arguments in callbacks (NewCallback)

1 participant