Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant