- 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 <somin926.kim@samsung.com>
#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")