eolian: Fix generating pointer promises for class types
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Sun, 5 Jun 2016 19:50:54 +0000 (16:50 -0300)
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Sun, 5 Jun 2016 19:50:54 +0000 (16:50 -0300)
src/bin/eolian/eo_generator.c

index 6a6f279..f893b45 100644 (file)
@@ -398,7 +398,8 @@ eo_bind_func_generate(const Eolian_Class *class, const Eolian_Function *funcid,
                     {
                       promise_value_type = eolian_type_c_type_get(subtype);
                       is_pointer_promise = eolian_type_type_get(subtype) == EOLIAN_TYPE_POINTER
-                        || eolian_type_type_get(subtype) == EOLIAN_TYPE_COMPLEX;
+                        || eolian_type_type_get(subtype) == EOLIAN_TYPE_COMPLEX
+                        || eolian_type_type_get(subtype) == EOLIAN_TYPE_CLASS;
                     }
                   eina_strbuf_append_printf(impl_full_params, ", Eina_Promise_Owner *%s%s",
                          pname, is_empty && !dflt_value ?" EINA_UNUSED":"");