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

Introduce evmc_capabilities and emvc_get_capabilities_fn #144

Merged
merged 2 commits into from
Sep 8, 2018

Conversation

axic
Copy link
Member

@axic axic commented Sep 6, 2018

Closes #141.

@axic
Copy link
Member Author

axic commented Sep 6, 2018

@chfast I've realised I wont have time to finish this now, if you want to take over.

* and its value MAY be influenced by calls to set_option.
*
* @param instance The EVM instance.
* @return The supported capabilities of the VM, @see ::evmc_capabilities.
Copy link
Member Author

Choose a reason for hiding this comment

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

I think the @see part is needed here given it doesn't return an enum.

EVMC_CAPABILITY_EVM1 = 1, /**< The VM is capable of executing EVM1 bytecode. */
EVMC_CAPABILITY_EWASM = 2 /**< The VM is capable of execution ewasm bytecode. */
EVMC_CAPABILITY_EVM1 = (1u << 0), /**< The VM is capable of executing EVM1 bytecode. */
EVMC_CAPABILITY_EWASM = (2u << 1) /**< The VM is capable of execution ewasm bytecode. */
Copy link
Member Author

Choose a reason for hiding this comment

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

I like pushing ones left by X bits, e.g.:

  • 1 << 0
  • 1 << 1
  • 1 << 2
    ...

@chfast
Copy link
Member

chfast commented Sep 8, 2018

@axic Please review my changes.

@chfast chfast merged commit 7cfc2bf into master Sep 8, 2018
@chfast chfast deleted the capabilities branch September 8, 2018 20:24
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