Summary: this prevent generating beta enum with `-Dmono-beta=false`.
Test Plan: meson setup -Dbindings=mono,cxx -Dmono-beta=false
Reviewers: lauromoura, Jaehyun_Cho
Reviewed By: Jaehyun_Cho
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10245
template <typename OutputIterator, typename Context>
bool generate(OutputIterator sink, attributes::enum_def const& enum_, Context const& context) const
{
+ if(enum_.is_beta)
+ return true;
+
if(!name_helpers::open_namespaces(sink, enum_.namespaces, context))
return false;
std::vector<std::string> namespaces;
std::vector<enum_value_def> fields;
documentation_def documentation;
+ bool is_beta;
enum_def(Eolian_Typedecl const* enum_obj, Eolian_Unit const* unit)
{
enum_value_def field_def(&*field_iterator, unit);
this->fields.push_back(field_def);
}
+ is_beta = eolian_object_is_beta(EOLIAN_OBJECT(enum_obj));
documentation = ::eolian_typedecl_documentation_get(enum_obj);
}