summaryrefslogtreecommitdiff
path: root/legacy/evas/src/lib/main.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/lib/main.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/legacy/evas/src/lib/main.c b/legacy/evas/src/lib/main.c
index c7619b9bc0..7a25b433f0 100644
--- a/legacy/evas/src/lib/main.c
+++ b/legacy/evas/src/lib/main.c
@@ -153,6 +153,22 @@ evas_debug_magic_wrong(DATA32 expected, DATA32 supplied)
153 if (_evas_debug_abort) abort(); 153 if (_evas_debug_abort) abort();
154} 154}
155 155
156void
157evas_debug_generic(const char *str)
158{
159 if (!_evas_debug_init)
160 {
161 if (getenv("EVAS_DEBUG_SHOW")) _evas_debug_show = 1;
162 if (getenv("EVAS_DEBUG_ABORT")) _evas_debug_abort = 1;
163 _evas_debug_init = 1;
164 }
165 if (_evas_debug_show)
166 fprintf(stderr,
167 "*** EVAS ERROR:\n"
168 "%s", (char *)str);
169 if (_evas_debug_abort) abort();
170}
171
156char * 172char *
157evas_debug_magic_string_get(DATA32 magic) 173evas_debug_magic_string_get(DATA32 magic)
158{ 174{