Skip to content

Add helpers to register Rust closures as callbacks#22

Merged
regomne merged 1 commit into
regomne:masterfrom
nex3:closure-helpers
Oct 25, 2025
Merged

Add helpers to register Rust closures as callbacks#22
regomne merged 1 commit into
regomne:masterfrom
nex3:closure-helpers

Conversation

@nex3

@nex3 nex3 commented Oct 25, 2025

Copy link
Copy Markdown
Contributor

These helpers have a little more indirection than the raw hooking API, but they make it much easier to share data with the callback or to wrap it further in an API with known argument types.

Closes #21

These helpers have a little more indirection than the raw hooking API,
but they make it much easier to share data with the callback or to
wrap it further in an API with known argument types.
@regomne regomne merged commit 8d39541 into regomne:master Oct 25, 2025
4 checks passed
@regomne

regomne commented Oct 25, 2025

Copy link
Copy Markdown
Owner

Thanks for your help, and I move the closure functions to top-level.

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.

Hooks with true Rust closures

2 participants