If a class (e.g Evas_Object) is expected as a base class but is not
present in the existing expected file (e.g evas_object.eo), it will not
fail.
This patch fixes it by checking the existence of the class into the
database after the parsing of the file.
@fix
filepath = eina_hash_find(_filenames, filename);
if (!filepath)
{
- ERR("Unable to find class %s", inherit_name);
+ ERR("Unable to find a file for class %s", inherit_name);
return EINA_FALSE;
}
if (!eolian_eo_file_parse(filepath)) return EINA_FALSE;
+ if (!eolian_class_find_by_name(inherit_name))
+ {
+ ERR("Unable to find class %s", inherit_name);
+ return EINA_FALSE;
+ }
free(filename);
}
}