#ifdef EINA_SAFETY_CHECKS
-#include "eina_error.h"
+#include "eina_log.h"
#define EINA_SAFETY_ON_NULL_RETURN(exp) \
do \
{ \
if (EINA_UNLIKELY((exp) == NULL)) \
{ \
- EINA_ERROR_PERR("%s", "safety check failed: " #exp " == NULL\n"); \
+ EINA_LOG_ERR("%s", "safety check failed: " #exp " == NULL"); \
return; \
} \
} \
{ \
if (EINA_UNLIKELY((exp) == NULL)) \
{ \
- EINA_ERROR_PERR("%s", "safety check failed: " #exp " == NULL\n"); \
+ EINA_LOG_ERR("%s", "safety check failed: " #exp " == NULL"); \
return (val); \
} \
} \
{ \
if (EINA_UNLIKELY(exp)) \
{ \
- EINA_ERROR_PERR("%s", "safety check failed: " #exp " is true\n"); \
+ EINA_LOG_ERR("%s", "safety check failed: " #exp " is true"); \
return; \
} \
} \
{ \
if (EINA_UNLIKELY(exp)) \
{ \
- EINA_ERROR_PERR("%s", "safety check failed: " #exp " is true\n"); \
+ EINA_LOG_ERR("%s", "safety check failed: " #exp " is true"); \
return val; \
} \
} \
{ \
if (EINA_UNLIKELY(!(exp))) \
{ \
- EINA_ERROR_PERR("%s", "safety check failed: " #exp " is false\n"); \
+ EINA_LOG_ERR("%s", "safety check failed: " #exp " is false"); \
return; \
} \
} \
{ \
if (EINA_UNLIKELY(!(exp))) \
{ \
- EINA_ERROR_PERR("%s", "safety check failed: " #exp " is false\n"); \
+ EINA_LOG_ERR("%s", "safety check failed: " #exp " is false"); \
return val; \
} \
} \