Skip to content

Instance Get All Exports#290

Merged
peterhuene merged 5 commits into
bytecodealliance:mainfrom
martindevans:instance_get_all_exports
Jan 2, 2024
Merged

Instance Get All Exports#290
peterhuene merged 5 commits into
bytecodealliance:mainfrom
martindevans:instance_get_all_exports

Conversation

@martindevans
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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

Comment thread tests/InstanceTests.cs Outdated
Co-authored-by: Konstantin Preißer <kpreisser@users.noreply.github.com>
Copy link
Copy Markdown
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!

Comment thread src/Instance.cs
Comment thread src/Instance.cs
Comment thread src/Instance.cs
Comment thread src/Instance.cs
Comment thread src/Instance.cs
Comment thread src/Instance.cs Outdated
Comment thread src/Instance.cs Outdated
@martindevans
Copy link
Copy Markdown
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
@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