eolian: properly get the legacy attribute of a method/property

This commit is contained in:
Daniel Kolesa 2014-08-22 17:01:36 +01:00
parent b75014a024
commit c562b38588
1 changed files with 2 additions and 2 deletions

View File

@ -81,12 +81,12 @@ _class_func_env_create(const Eolian_Class *class, const char *funcname, Eolian_F
suffix = "_get";
legacy = eolian_function_legacy_get(funcid, ftype);
}
if (ftype == EOLIAN_PROP_SET)
else if (ftype == EOLIAN_PROP_SET)
{
suffix = "_set";
legacy = eolian_function_legacy_get(funcid, ftype);
}
if (!legacy) legacy = eolian_function_legacy_get(funcid, EOLIAN_METHOD);
else legacy = eolian_function_legacy_get(funcid, EOLIAN_METHOD);
_eolian_class_vars tmp_env;
_class_env_create(class, NULL, &tmp_env);