eo: only call costly function _eo_op_desc_name_get when in debug mode.

This commit is contained in:
Cedric BAIL 2018-01-24 15:36:39 -08:00
parent bd41e4626f
commit 1eb4d1311e
1 changed files with 2 additions and 0 deletions

View File

@ -804,7 +804,9 @@ _eo_class_funcs_set(Eo_Vtable *vtable, const Efl_Object_Ops *ops, const _Efl_Cla
op_id++;
}
#ifdef EO_DEBUG
DBG("%p->%p '%s'", op_desc->api_func, op_desc->func, _eo_op_desc_name_get(op_desc));
#endif
if (!_vtable_func_set(vtable, klass, override_class, op, op_desc->func, EINA_TRUE))
return EINA_FALSE;