eolian-cxx: Do not call eolian_function_scope_get with EOLIAN_PROPERTY

This commit is contained in:
Felipe Magno de Almeida 2017-01-18 23:06:51 -02:00
parent a1f2db255b
commit 679bbc5cab
1 changed files with 2 additions and 2 deletions

View File

@ -638,12 +638,12 @@ struct klass_def
{ {
try { try {
if(! ::eolian_function_is_legacy_only(function, EOLIAN_PROP_GET) if(! ::eolian_function_is_legacy_only(function, EOLIAN_PROP_GET)
&& ::eolian_function_scope_get(function, type) != EOLIAN_SCOPE_PRIVATE) && ::eolian_function_scope_get(function, EOLIAN_PROP_GET) != EOLIAN_SCOPE_PRIVATE)
functions.push_back({function, EOLIAN_PROP_GET}); functions.push_back({function, EOLIAN_PROP_GET});
} catch(std::exception const&) {} } catch(std::exception const&) {}
try { try {
if(! ::eolian_function_is_legacy_only(function, EOLIAN_PROP_SET) if(! ::eolian_function_is_legacy_only(function, EOLIAN_PROP_SET)
&& ::eolian_function_scope_get(function, type) != EOLIAN_SCOPE_PRIVATE) && ::eolian_function_scope_get(function, EOLIAN_PROP_SET) != EOLIAN_SCOPE_PRIVATE)
functions.push_back({function, EOLIAN_PROP_SET}); functions.push_back({function, EOLIAN_PROP_SET});
} catch(std::exception const&) {} } catch(std::exception const&) {}
} }