summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorJaehyun Cho <jae_hyun.cho@samsung.com>2019-09-30 15:51:31 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2019-09-30 15:51:31 +0900
commit8937ee4cf6609c5d6eccd940cda939589a80046b (patch)
tree0b04ad3651f271da97f20f95912533ca1b72fb90 /src/bin
parentd1dd3c30b91fd1015a157690f5678fc0520bd23c (diff)
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
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/eolian_mono/eolian/mono/enum_definition.hh4
1 files changed, 3 insertions, 1 deletions
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
17 template <typename OutputIterator, typename Context> 17 template <typename OutputIterator, typename Context>
18 bool generate(OutputIterator sink, attributes::enum_def const& enum_, Context const& context) const 18 bool generate(OutputIterator sink, attributes::enum_def const& enum_, Context const& context) const
19 { 19 {
20 if(enum_.is_beta) 20 auto options = efl::eolian::grammar::context_find_tag<options_context>(context);
21
22 if(!options.want_beta && enum_.is_beta)
21 return true; 23 return true;
22 24
23 if(!name_helpers::open_namespaces(sink, enum_.namespaces, context)) 25 if(!name_helpers::open_namespaces(sink, enum_.namespaces, context))