From 132570bea499789370bc8a192bc06d18615ab490 Mon Sep 17 00:00:00 2001 From: Somin Kim Date: Wed, 5 Jul 2017 16:28:55 +0900 Subject: [PATCH] Remove redefinition warning of context - IS_FAILED defined in context-common has changed, and it caused redefinition warning in context. So changed definition of legacy IS_FAILED as same as IS_FAILED of context-common. Change-Id: I0975519c4b403cec575b0bf82e91e3eb1ed0f364 Signed-off-by: Somin Kim --- common/include/Types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/include/Types.h b/common/include/Types.h index 054639b..ca056e0 100644 --- a/common/include/Types.h +++ b/common/include/Types.h @@ -61,7 +61,7 @@ #define IF_FAIL_CATCH(cond) \ do { if (!(cond)) { goto CATCH; } } while (0) -#define IS_FAILED(X) ((X) != ERR_NONE) +#define IS_FAILED(X) ((X) < 0) #define ASSERT_ALLOC(X) IF_FAIL_RETURN_TAG(X, ERR_OUT_OF_MEMORY, _E, "Memory allocation failed") #define ASSERT_NOT_NULL(X) IF_FAIL_RETURN_TAG(X, ERR_INVALID_PARAMETER, _E, "Parameter null") -- 2.34.1