summaryrefslogtreecommitdiff
path: root/src/bin/eolian
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-08-22 17:01:36 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-08-22 17:01:36 +0100
commitc562b3858858b6443049dd3150bd3c3be76c9bb1 (patch)
tree4452160d6d5fae5d562b527f6a5b938c77f13830 /src/bin/eolian
parentb75014a02487221041563c8689a88820d7db9789 (diff)
eolian: properly get the legacy attribute of a method/property
Diffstat (limited to 'src/bin/eolian')
-rw-r--r--src/bin/eolian/common_funcs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/eolian/common_funcs.c b/src/bin/eolian/common_funcs.c
index 13d5ffc5c7..1e25699a82 100644
--- a/src/bin/eolian/common_funcs.c
+++ b/src/bin/eolian/common_funcs.c
@@ -81,12 +81,12 @@ _class_func_env_create(const Eolian_Class *class, const char *funcname, Eolian_F
81 suffix = "_get"; 81 suffix = "_get";
82 legacy = eolian_function_legacy_get(funcid, ftype); 82 legacy = eolian_function_legacy_get(funcid, ftype);
83 } 83 }
84 if (ftype == EOLIAN_PROP_SET) 84 else if (ftype == EOLIAN_PROP_SET)
85 { 85 {
86 suffix = "_set"; 86 suffix = "_set";
87 legacy = eolian_function_legacy_get(funcid, ftype); 87 legacy = eolian_function_legacy_get(funcid, ftype);
88 } 88 }
89 if (!legacy) legacy = eolian_function_legacy_get(funcid, EOLIAN_METHOD); 89 else legacy = eolian_function_legacy_get(funcid, EOLIAN_METHOD);
90 90
91 _eolian_class_vars tmp_env; 91 _eolian_class_vars tmp_env;
92 _class_env_create(class, NULL, &tmp_env); 92 _class_env_create(class, NULL, &tmp_env);