summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 56560afcf2..96595d3474 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))