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

Avoid dependency on exported go header #124

Merged
merged 1 commit into from
Jan 11, 2025
Merged

Conversation

arnetheduck
Copy link
Contributor

The expected type of the callback is already known from the AST - this change reduces dependency on cgo specifics and makes the generated C ABI entirely cgo-independent - in particular, there is no need to include _cgo_export.h any more.

The expected type of the callback is already known from the AST - this
change reduces dependency on cgo specifics and makes the generated C ABI
entirely cgo-independent - in particular, there is no need to include
`_cgo_export.h` any more.
@mappu
Copy link
Owner

mappu commented Jan 11, 2025

This change makes sense to me. The cgo_export was only needed for those definitions, but if we write the prototype ourselves, the result is more portable and we avoid the weird _Bool hack.

Thanks! LGTM 🚢

@mappu mappu merged commit 3a63a12 into mappu:master Jan 11, 2025
5 checks passed
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.

2 participants