From b889ea4daa11edd09a7432c97d8a296792d67ab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Thu, 25 Aug 2016 12:40:16 +0200 Subject: [PATCH] EVM-C: Change #define EVM_CALL_FAILURE to static const global variable --- include/evm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/evm.h b/include/evm.h index 3462ae1..f1590e1 100644 --- a/include/evm.h +++ b/include/evm.h @@ -227,8 +227,8 @@ 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_CALL_FAILURE INT64_MIN ///< The execution ended with a failure. +/// The flag indicating call failure in evm_call_fn(). +static const int64_t EVM_CALL_FAILURE = INT64_MIN; /// Pointer to the callback function supporting EVM calls. ///