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

Refactor - Make declare_builtin_function receive a generic ContextObject #616

Closed
wants to merge 1 commit into from

Conversation

LucasSte
Copy link

The macro declare_builtin_function unnecessarily requires a coded type that implements the trait ContextObject. Alternatively, we can modify the macro to accept a generic type that implements the trait.

The idea behind this change is to use the macro for creating a tombstone function for static syscalls when they are deactivated behind a feature gate. Having the generic type allows the tombstone to work with Agave's InvokeContext type.

@LucasSte LucasSte requested a review from Lichtso October 16, 2024 22:11
@LucasSte LucasSte marked this pull request as ready for review October 16, 2024 22:11
@LucasSte LucasSte closed this Oct 17, 2024
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.

1 participant