From b5197eb128f965d58dbb9659bc96bda65f8c4fa5 Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Tue, 18 Dec 2012 20:14:11 +0000 Subject: [PATCH] efl/ecore_evas: be loud on errors. SVN revision: 81302 --- src/lib/ecore_evas/ecore_evas.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/ecore_evas/ecore_evas.c b/src/lib/ecore_evas/ecore_evas.c index 2808c61..e3de861 100644 --- a/src/lib/ecore_evas/ecore_evas.c +++ b/src/lib/ecore_evas/ecore_evas.c @@ -74,7 +74,8 @@ _ecore_evas_interface_get(const Ecore_Evas *ee, const char *iname) Eina_List *l; Ecore_Evas_Interface *i; - if (!ee || !iname) return NULL; + EINA_SAFETY_ON_NULL_RETURN_VAL(ee, NULL); + EINA_SAFETY_ON_NULL_RETURN_VAL(iname, NULL); EINA_LIST_FOREACH(ee->engine.ifaces, l, i) { @@ -82,6 +83,9 @@ _ecore_evas_interface_get(const Ecore_Evas *ee, const char *iname) return i; } + CRIT("Ecore_Evas %p (engine: %s) does not have interface '%s'", + ee, ee->driver, iname); + return NULL; } -- 2.7.4