From 0a897b6f0359a306244d4e9223c076d4ddbca2a1 Mon Sep 17 00:00:00 2001 From: Jaehyun Cho Date: Mon, 30 Sep 2019 15:51:31 +0900 Subject: [PATCH] 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 --- src/bin/eolian_mono/eolian/mono/enum_definition.hh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/eolian_mono/eolian/mono/enum_definition.hh b/src/bin/eolian_mono/eolian/mono/enum_definition.hh index 56560af..96595d3 100644 --- a/src/bin/eolian_mono/eolian/mono/enum_definition.hh +++ b/src/bin/eolian_mono/eolian/mono/enum_definition.hh @@ -17,7 +17,9 @@ struct enum_definition_generator template 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(context); + + if(!options.want_beta && enum_.is_beta) return true; if(!name_helpers::open_namespaces(sink, enum_.namespaces, context)) -- 2.7.4