eolian_cxx: very quick workaround to make tests compile again (needs fix)
authorDaniel Kolesa <d.kolesa@samsung.com>
Wed, 27 Aug 2014 14:14:03 +0000 (15:14 +0100)
committerDaniel Kolesa <d.kolesa@samsung.com>
Wed, 27 Aug 2014 14:43:47 +0000 (15:43 +0100)
src/bin/eolian_cxx/convert.cc

index fc0dc298398902f129993df587373a63b6926520..3f20f73a18d33456907431093232dde9b2075d8b 100644 (file)
@@ -232,10 +232,12 @@ convert_eolian_constructors(efl::eolian::eo_class& cls, Eolian_Class const& klas
    void *curr;
    std::string prefix(class_prefix(klass));
    Eina_Iterator *constructors =
-     ::eolian_class_functions_get(&klass, EOLIAN_CTOR);
+     ::eolian_class_functions_get(&klass, EOLIAN_METHOD);
    EINA_ITERATOR_FOREACH(constructors, curr)
      {
         Eolian_Function *eo_constructor = static_cast<Eolian_Function*>(curr);
+        if (!eolian_function_is_constructing(eo_constructor))
+          continue;
         efl::eolian::eo_constructor constructor;
         constructor.name = function_impl(*eo_constructor, prefix);
         constructor.params = convert_eolian_parameters(*eo_constructor);
@@ -256,6 +258,8 @@ convert_eolian_functions(efl::eolian::eo_class& cls, Eolian_Class const& klass)
      {
         efl::eolian::eo_function func_;
         Eolian_Function *eol_func = static_cast<Eolian_Function*>(curr);
+        if (eolian_function_is_constructing(eol_func))
+          continue;
         // XXX Eolian only provides regular methods so far
         func_.type = efl::eolian::eo_function::regular_;
         func_.name = function_name(*eol_func);