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

Add a convenience for getting the function tables #57

Merged
merged 1 commit into from
Feb 19, 2019

Conversation

alexcrichton
Copy link
Collaborator

If applicable modules typically have one function table when coming from
languages like C or Rust, so add a convenience function that returns the
function table if it's present.

/// # Errors
///
/// Returns an error if there are two function tables in this module
pub fn single_function_table(&self) -> Result<Option<TableId>> {
Copy link
Member

Choose a reason for hiding this comment

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

main_function_table?

If applicable modules typically have one function table when coming from
languages like C or Rust, so add a convenience function that returns the
function table if it's present.
@alexcrichton alexcrichton merged commit 89d4d34 into rustwasm:master Feb 19, 2019
@alexcrichton alexcrichton deleted the func-table branch February 19, 2019 16:05
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