summaryrefslogtreecommitdiff
path: root/legacy/evas/src
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
parentbc281b4e5a809f333be7c0ea0ea7dfedda415e30 (diff)
freeze/thaw debug!
SVN revision: 8688
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/lib/canvas/evas_events.c2
-rw-r--r--legacy/evas/src/lib/include/evas_private.h1
-rw-r--r--legacy/evas/src/lib/main.c16
3 files changed, 19 insertions, 0 deletions
diff --git a/legacy/evas/src/lib/canvas/evas_events.c b/legacy/evas/src/lib/canvas/evas_events.c
index abbe10d56f..1f8b42b4eb 100644
--- a/legacy/evas/src/lib/canvas/evas_events.c
+++ b/legacy/evas/src/lib/canvas/evas_events.c
@@ -80,6 +80,8 @@ evas_event_thaw(Evas *e)
80 return; 80 return;
81 MAGIC_CHECK_END(); 81 MAGIC_CHECK_END();
82 e->events_frozen--; 82 e->events_frozen--;
83 if (e->events_frozen < 0)
84 evas_debug_generic(" Thaw of events when already thawed!!!\n");
83} 85}
84 86
85/** 87/**
diff --git a/legacy/evas/src/lib/include/evas_private.h b/legacy/evas/src/lib/include/evas_private.h
index 234d9d63e0..b83ed7e712 100644
--- a/legacy/evas/src/lib/include/evas_private.h
+++ b/legacy/evas/src/lib/include/evas_private.h
@@ -593,6 +593,7 @@ void evas_debug_error(void);
593void evas_debug_input_null(void); 593void evas_debug_input_null(void);
594void evas_debug_magic_null(void); 594void evas_debug_magic_null(void);
595void evas_debug_magic_wrong(DATA32 expected, DATA32 supplied); 595void evas_debug_magic_wrong(DATA32 expected, DATA32 supplied);
596void evas_debug_generic(const char *str);
596char *evas_debug_magic_string_get(DATA32 magic); 597char *evas_debug_magic_string_get(DATA32 magic);
597void evas_object_smart_use(Evas_Smart *s); 598void evas_object_smart_use(Evas_Smart *s);
598void evas_object_smart_unuse(Evas_Smart *s); 599void evas_object_smart_unuse(Evas_Smart *s);
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{