Skip to content

feat(macros): Allow function/constructor callback to get generic parameters #32

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

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

Hywan
Copy link
Contributor

@Hywan Hywan commented Nov 17, 2023

This patch allows #[function_callback] and #[constructor_callback]
to be defined with generic parameters. This patch adds a test to ensure
it works correctly. Rust will monomorphize the functions automatically,
the macro doesn't have to handle that.

…meters.

This patch allows `#[function_callback]` and `#[constructor_callback]`
to be defined where generic parameters. This patch adds a test to ensure
it works correctly. Rust will monomorphize the functions automatically,
the macro doesn't have to handle that.
@waywardmonkeys waywardmonkeys merged commit 9791f15 into endoli:main Nov 17, 2023
@Hywan
Copy link
Contributor Author

Hywan commented Nov 17, 2023

Thanks!

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