eolian_mono: support beta for enum if mono-beta is enabled
Summary: this generates beta enum with `-Dmono-beta=true`. Test Plan: meson setup -Dbindings=mono,cxx -Dmono-beta=true Reviewers: lauromoura, YOhoho Reviewed By: YOhoho Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10246
This commit is contained in:
parent
d1dd3c30b9
commit
8937ee4cf6
|
@ -17,7 +17,9 @@ struct enum_definition_generator
|
||||||
template <typename OutputIterator, typename Context>
|
template <typename OutputIterator, typename Context>
|
||||||
bool generate(OutputIterator sink, attributes::enum_def const& enum_, Context const& context) const
|
bool generate(OutputIterator sink, attributes::enum_def const& enum_, Context const& context) const
|
||||||
{
|
{
|
||||||
if(enum_.is_beta)
|
auto options = efl::eolian::grammar::context_find_tag<options_context>(context);
|
||||||
|
|
||||||
|
if(!options.want_beta && enum_.is_beta)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if(!name_helpers::open_namespaces(sink, enum_.namespaces, context))
|
if(!name_helpers::open_namespaces(sink, enum_.namespaces, context))
|
||||||
|
|
Loading…
Reference in New Issue