efl/ecore_evas: be loud on errors.

SVN revision: 81302
This commit is contained in:
Gustavo Sverzut Barbieri 2012-12-18 20:14:11 +00:00
parent b6724ed9ce
commit b5197eb128
1 changed files with 5 additions and 1 deletions

View File

@ -74,7 +74,8 @@ _ecore_evas_interface_get(const Ecore_Evas *ee, const char *iname)
Eina_List *l; Eina_List *l;
Ecore_Evas_Interface *i; 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) 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; return i;
} }
CRIT("Ecore_Evas %p (engine: %s) does not have interface '%s'",
ee, ee->driver, iname);
return NULL; return NULL;
} }