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

Instance Get All Exports #290

Merged

Conversation

martindevans
Copy link
Contributor

Added methods to fetch all exports from an Instance, using wasmtime_instance_export_nth to enumerate exports.

Also removed wasmtime_instancetype_delete, since it doesn't appear to be part of the c-api any more.

 - Removed `wasmtime_instancetype_delete` (doesn't appear to be part of the c-api any more)
@martindevans
Copy link
Contributor Author

Linux CI seems to be failing due to a file not copying into the test environment properly. I'm not sure why :/

tests/InstanceTests.cs Outdated Show resolved Hide resolved
Co-authored-by: Konstantin Preißer <kpreisser@users.noreply.github.com>
Copy link
Member

@peterhuene peterhuene left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some minor nit comments, otherwise looks good!

src/Instance.cs Show resolved Hide resolved
src/Instance.cs Show resolved Hide resolved
src/Instance.cs Show resolved Hide resolved
src/Instance.cs Show resolved Hide resolved
src/Instance.cs Show resolved Hide resolved
src/Instance.cs Outdated Show resolved Hide resolved
src/Instance.cs Outdated Show resolved Hide resolved
@martindevans
Copy link
Contributor Author

I've merged all those review suggestions and have removed the unnecessary doc comment.

@peterhuene peterhuene merged commit c976fb2 into bytecodealliance:main Jan 2, 2024
6 checks passed
@martindevans martindevans deleted the instance_get_all_exports branch January 2, 2024 21:59
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.

3 participants