summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-06-05 16:50:54 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-06-05 16:50:54 -0300
commit96f0783e04514559f3e2f185076bf6588461ede5 (patch)
tree3287359ba5b4e4307fc9442cc81dc9f4603e868c /src
parentf122437dd6fe624e8c3932e39005cd2c172d8162 (diff)
eolian: Fix generating pointer promises for class types
Diffstat (limited to 'src')
-rw-r--r--src/bin/eolian/eo_generator.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/eolian/eo_generator.c b/src/bin/eolian/eo_generator.c
index 6a6f279ca2..f893b4579d 100644
--- a/src/bin/eolian/eo_generator.c
+++ b/src/bin/eolian/eo_generator.c
@@ -398,7 +398,8 @@ eo_bind_func_generate(const Eolian_Class *class, const Eolian_Function *funcid,
398 { 398 {
399 promise_value_type = eolian_type_c_type_get(subtype); 399 promise_value_type = eolian_type_c_type_get(subtype);
400 is_pointer_promise = eolian_type_type_get(subtype) == EOLIAN_TYPE_POINTER 400 is_pointer_promise = eolian_type_type_get(subtype) == EOLIAN_TYPE_POINTER
401 || eolian_type_type_get(subtype) == EOLIAN_TYPE_COMPLEX; 401 || eolian_type_type_get(subtype) == EOLIAN_TYPE_COMPLEX
402 || eolian_type_type_get(subtype) == EOLIAN_TYPE_CLASS;
402 } 403 }
403 eina_strbuf_append_printf(impl_full_params, ", Eina_Promise_Owner *%s%s", 404 eina_strbuf_append_printf(impl_full_params, ", Eina_Promise_Owner *%s%s",
404 pname, is_empty && !dflt_value ?" EINA_UNUSED":""); 405 pname, is_empty && !dflt_value ?" EINA_UNUSED":"");