forked from enlightenment/efl
Eo: Improve error message when overriding functions.
This commit is contained in:
parent
e1efe2e651
commit
c450efdcde
|
@ -140,7 +140,7 @@ _vtable_func_set(_Eo_Class *klass, Eo_Op op, eo_op_func_type func)
|
|||
if (fsrc->src == klass)
|
||||
{
|
||||
const _Eo_Class *op_kls = _eo_op_class_get(op);
|
||||
ERR("Class '%s': Overriding func %p for op %d (%s) with %p.",
|
||||
ERR("Class '%s': Overriding already set func %p for op %d (%s) with %p.",
|
||||
klass->desc->name, fsrc->func, op, op_kls->desc->name, func);
|
||||
return EINA_FALSE;
|
||||
}
|
||||
|
|
|
@ -329,7 +329,7 @@ START_TEST(eo_dich_func_override)
|
|||
NULL
|
||||
};
|
||||
|
||||
TEST_EO_ERROR("_vtable_func_set", "Class '%s': Overriding func %p for op %d (%s) with %p.");
|
||||
TEST_EO_ERROR("_vtable_func_set", "Class '%s': Overriding already set func %p for op %d (%s) with %p.");
|
||||
klass = eo_class_new(&class_desc, SIMPLE_CLASS, NULL);
|
||||
fail_if(klass);
|
||||
fail_unless(ctx.did);
|
||||
|
|
Loading…
Reference in New Issue