eolian: improve implement error messages
authorDaniel Kolesa <d.kolesa@osg.samsung.com>
Wed, 11 Jan 2017 15:45:53 +0000 (16:45 +0100)
committerDaniel Kolesa <d.kolesa@osg.samsung.com>
Wed, 11 Jan 2017 15:45:53 +0000 (16:45 +0100)
By retrieving by EOLIAN_UNDEFINED, we can provide more concrete error messages
thanks to the logic later.

src/lib/eolian/database_fill.c

index e12f767..a841e26 100644 (file)
@@ -56,7 +56,7 @@ _get_impl_func(Eolian_Class *cl, Eolian_Implement *impl,
 
    impl->klass = tcl;
 
-   const Eolian_Function *fid = eolian_class_function_get_by_name(tcl, fnname, ftype);
+   const Eolian_Function *fid = eolian_class_function_get_by_name(tcl, fnname, EOLIAN_UNRESOLVED);
    if (!fid)
      {
         _print_linecol(&impl->base);