summaryrefslogtreecommitdiff
path: root/legacy/evas/src/lib/main.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2004-01-28 02:43:13 +0000
committerCarsten Haitzler <raster@rasterman.com>2004-01-28 02:43:13 +0000
commit4bfe9af00aeea7f2472036a81fabc049d2c9aeda (patch)
tree427b6e5012f3de95ffb6ab19fe31563cc102157f /legacy/evas/src/lib/main.c
parentbc281b4e5a809f333be7c0ea0ea7dfedda415e30 (diff)
freeze/thaw debug!
SVN revision: 8688
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{