forked from enlightenment/efl
eo: print debug information when a call cannot be resolved
that is usefull esp. on parts. Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D11462
This commit is contained in:
parent
565fa76a11
commit
f7e0a55d52
|
@ -567,16 +567,16 @@ composite_continue:
|
|||
// If it's a do_super call.
|
||||
if (cur_klass)
|
||||
{
|
||||
ERR("in %s:%d: func '%s' (%d) could not be resolved for class '%s' for super of '%s'.",
|
||||
file, line, func_name, op, main_klass->desc->name,
|
||||
ERR("in %s:%d: func '%s' (%d) could not be resolved on %s for class '%s' for super of '%s'.",
|
||||
file, line, func_name, op, efl_debug_name_get(eo_id), main_klass->desc->name,
|
||||
cur_klass->desc->name);
|
||||
goto err;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* we should not be able to take this branch */
|
||||
ERR("in %s:%d: func '%s' (%d) could not be resolved for class '%s'.",
|
||||
file, line, func_name, op, main_klass->desc->name);
|
||||
ERR("in %s:%d: func '%s' (%d) could not be resolved on %s for class '%s'.",
|
||||
file, line, func_name, op, efl_debug_name_get(eo_id), main_klass->desc->name);
|
||||
goto err;
|
||||
}
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ EFL_START_TEST(eo_op_not_found_in_super)
|
|||
Eo *obj = efl_add_ref(SIMPLE_CLASS, NULL);
|
||||
fail_if(!obj);
|
||||
|
||||
TEST_EO_ERROR("_efl_object_call_resolve", "in %s:%d: func '%s' (%d) could not be resolved for class '%s' for super of '%s'.");
|
||||
TEST_EO_ERROR("_efl_object_call_resolve", "in %s:%d: func '%s' (%d) could not be resolved on %s for class '%s' for super of '%s'.");
|
||||
simple_a_set(efl_super(obj, SIMPLE_CLASS), 10);
|
||||
fail_unless(ctx.did);
|
||||
|
||||
|
|
Loading…
Reference in New Issue