-
Notifications
You must be signed in to change notification settings - Fork 310
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
Conversation
@chfast I've realised I wont have time to finish this now, if you want to take over. |
include/evmc/evmc.h
Outdated
* 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. |
There was a problem hiding this comment.
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.
include/evmc/evmc.h
Outdated
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. */ |
There was a problem hiding this comment.
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
...
@axic Please review my changes. |
Closes #141.