summaryrefslogtreecommitdiff
path: root/src/bin/eolian/eo1_generator.c
diff options
context:
space:
mode:
authorYossi Kantor <yossi.kantor@samsung.com>2014-03-24 13:21:28 +0200
committerDaniel Zaoui <daniel.zaoui@samsung.com>2014-04-02 10:05:37 +0300
commit277c3e2ef38606678b6c52ed1841ab1b74c962bc (patch)
tree24d0c37c3399e79b115bdca407194fd09c9b56b4 /src/bin/eolian/eo1_generator.c
parent9128ac82a0c0b6081d0065891d746768be21ccd5 (diff)
Eolian: Explicit generation of either method or property in implemented functions
Diffstat (limited to '')
-rw-r--r--src/bin/eolian/eo1_generator.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bin/eolian/eo1_generator.c b/src/bin/eolian/eo1_generator.c
index fa3804e8ac..1b4887e62a 100644
--- a/src/bin/eolian/eo1_generator.c
+++ b/src/bin/eolian/eo1_generator.c
@@ -694,10 +694,16 @@ eo1_source_end_generate(const char *classname, Eina_Strbuf *buf)
694 goto end; 694 goto end;
695 } 695 }
696 696
697 /* e.g event_freeze can be a property or a method. If a type is explicit (property SET/GET),
698 * we assume it can't be a method.
699 */
700 if ((in_meth && in_prop) && (ftype == SET || ftype == GET)) in_meth = NULL;
701
697 if (in_meth) 702 if (in_meth)
698 { 703 {
699 _template_fill(str_func, tmpl_impl_str, impl_class, funcname, EINA_FALSE); 704 _template_fill(str_func, tmpl_impl_str, impl_class, funcname, EINA_FALSE);
700 eo1_bind_func_generate(classname, in_meth, UNRESOLVED, str_bodyf, impl_class); 705 eo1_bind_func_generate(classname, in_meth, UNRESOLVED, str_bodyf, impl_class);
706 continue;
701 } 707 }
702 708
703 if (in_prop) 709 if (in_prop)