Merge pull request #56 from ethereum/trap-error

Add EVMC_TRAP_INSTRUCTION error code
This commit is contained in:
Paweł Bylica 2018-08-20 11:20:22 +02:00 committed by GitHub
commit e319788554
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -281,6 +281,17 @@ enum evmc_status_code
*/ */
EVMC_ARGUMENT_OUT_OF_RANGE = 14, EVMC_ARGUMENT_OUT_OF_RANGE = 14,
/**
* A WebAssembly `unreachable` instruction has been hit during exection.
*/
EVMC_WASM_UNREACHABLE_INSTRUCTION = 15,
/**
* A WebAssembly trap has been hit during execution. This can be for many
* reasons, including division by zero, validation errors, etc.
*/
EVMC_WASM_TRAP = 16,
/** EVM implementation generic internal error. */ /** EVM implementation generic internal error. */
EVMC_INTERNAL_ERROR = -1, EVMC_INTERNAL_ERROR = -1,