summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2019-09-30 13:52:45 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2019-09-30 13:52:45 +0900
commitd1dd3c30b91fd1015a157690f5678fc0520bd23c (patch)
tree2fa70189364cbb9b22e392ab1d20b3c327340de2 /src/bin
parent4429b16e36254087f9e6f952677c561f2236d8c0 (diff)
eolian_mono: Respect beta for enum
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
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/eolian_mono/eolian/mono/enum_definition.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/enum_definition.hh b/src/bin/eolian_mono/eolian/mono/enum_definition.hh
index c5ab79a..56560af 100644
--- a/src/bin/eolian_mono/eolian/mono/enum_definition.hh
+++ b/src/bin/eolian_mono/eolian/mono/enum_definition.hh
@@ -17,6 +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)
21 return true;
22
20 if(!name_helpers::open_namespaces(sink, enum_.namespaces, context)) 23 if(!name_helpers::open_namespaces(sink, enum_.namespaces, context))
21 return false; 24 return false;
22 25