EVM-C: demote EVM_EXCEPTION to only be used with evm_query_fn

This commit is contained in:
Alex Beregszaszi 2016-08-23 23:08:35 +01:00
parent abc914afd2
commit 0e129f5fed

View File

@ -59,9 +59,6 @@ struct evm_hash256 {
};
};
#define EVM_EXCEPTION INT64_MIN ///< The execution ended with an exception.
/// The outcome of an execution.
enum evm_result_outcome {
EVM_RESULT_SUCCESS = 0,
@ -220,6 +217,9 @@ enum evm_call_kind {
EVM_CREATE = 3 ///< Request CREATE. Semantic of some params changes.
};
/// This is used as a result code with evm_call_fn.
#define EVM_EXCEPTION INT64_MIN ///< The execution ended with an exception.
/// Pointer to the callback function supporting EVM calls.
///
/// @param env Pointer to execution environment managed by the host