summaryrefslogtreecommitdiff
path: root/legacy/eina/src/include/eina_safety_checks.h
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2009-09-03 23:36:27 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2009-09-03 23:36:27 +0000
commit4d37971d60e7b69282d7aae901afe16451cc4c1c (patch)
treed492fdcd8e3338128892c2c58b6abc4735713c93 /legacy/eina/src/include/eina_safety_checks.h
parent63ebbb00a0a0f63f8122b487a7ad4ddc1cd70943 (diff)
eina_safety_checks now uses eina_log.
SVN revision: 42213
Diffstat (limited to '')
-rw-r--r--legacy/eina/src/include/eina_safety_checks.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/legacy/eina/src/include/eina_safety_checks.h b/legacy/eina/src/include/eina_safety_checks.h
index d931c9027c..7b3d80cb36 100644
--- a/legacy/eina/src/include/eina_safety_checks.h
+++ b/legacy/eina/src/include/eina_safety_checks.h
@@ -24,14 +24,14 @@
24 24
25#ifdef EINA_SAFETY_CHECKS 25#ifdef EINA_SAFETY_CHECKS
26 26
27#include "eina_error.h" 27#include "eina_log.h"
28 28
29#define EINA_SAFETY_ON_NULL_RETURN(exp) \ 29#define EINA_SAFETY_ON_NULL_RETURN(exp) \
30 do \ 30 do \
31 { \ 31 { \
32 if (EINA_UNLIKELY((exp) == NULL)) \ 32 if (EINA_UNLIKELY((exp) == NULL)) \
33 { \ 33 { \
34 EINA_ERROR_PERR("%s", "safety check failed: " #exp " == NULL\n"); \ 34 EINA_LOG_ERR("%s", "safety check failed: " #exp " == NULL"); \
35 return; \ 35 return; \
36 } \ 36 } \
37 } \ 37 } \
@@ -42,7 +42,7 @@
42 { \ 42 { \
43 if (EINA_UNLIKELY((exp) == NULL)) \ 43 if (EINA_UNLIKELY((exp) == NULL)) \
44 { \ 44 { \
45 EINA_ERROR_PERR("%s", "safety check failed: " #exp " == NULL\n"); \ 45 EINA_LOG_ERR("%s", "safety check failed: " #exp " == NULL"); \
46 return (val); \ 46 return (val); \
47 } \ 47 } \
48 } \ 48 } \
@@ -53,7 +53,7 @@
53 { \ 53 { \
54 if (EINA_UNLIKELY(exp)) \ 54 if (EINA_UNLIKELY(exp)) \
55 { \ 55 { \
56 EINA_ERROR_PERR("%s", "safety check failed: " #exp " is true\n"); \ 56 EINA_LOG_ERR("%s", "safety check failed: " #exp " is true"); \
57 return; \ 57 return; \
58 } \ 58 } \
59 } \ 59 } \
@@ -64,7 +64,7 @@
64 { \ 64 { \
65 if (EINA_UNLIKELY(exp)) \ 65 if (EINA_UNLIKELY(exp)) \
66 { \ 66 { \
67 EINA_ERROR_PERR("%s", "safety check failed: " #exp " is true\n"); \ 67 EINA_LOG_ERR("%s", "safety check failed: " #exp " is true"); \
68 return val; \ 68 return val; \
69 } \ 69 } \
70 } \ 70 } \
@@ -75,7 +75,7 @@
75 { \ 75 { \
76 if (EINA_UNLIKELY(!(exp))) \ 76 if (EINA_UNLIKELY(!(exp))) \
77 { \ 77 { \
78 EINA_ERROR_PERR("%s", "safety check failed: " #exp " is false\n"); \ 78 EINA_LOG_ERR("%s", "safety check failed: " #exp " is false"); \
79 return; \ 79 return; \
80 } \ 80 } \
81 } \ 81 } \
@@ -86,7 +86,7 @@
86 { \ 86 { \
87 if (EINA_UNLIKELY(!(exp))) \ 87 if (EINA_UNLIKELY(!(exp))) \
88 { \ 88 { \
89 EINA_ERROR_PERR("%s", "safety check failed: " #exp " is false\n"); \ 89 EINA_LOG_ERR("%s", "safety check failed: " #exp " is false"); \
90 return val; \ 90 return val; \
91 } \ 91 } \
92 } \ 92 } \