summaryrefslogtreecommitdiff
path: root/src/bin/eolian_mono/eolian/mono/klass.hh
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-01-17 21:43:57 +0900
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2019-01-17 21:45:49 +0900
commit586bc5207e63bd8f622f466749781e397fc5e921 (patch)
tree41cea82422433821ecd6a2ab55f15fbf20c7aec8 /src/bin/eolian_mono/eolian/mono/klass.hh
parentadc2e674af528c01ca5bb11d56edc475bce5cc4d (diff)
efl-mono: Enable selecting to build @beta items
Summary: For autotools, use --enable-csharp-beta to enable the generation of beta methods and properties, for meson use -Dmono-beta=true. By default, no beta method or property is generated. Reviewers: woohyun, segfaultxavi, bu5hm4n, lauromoura Reviewed By: woohyun Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7637
Diffstat (limited to 'src/bin/eolian_mono/eolian/mono/klass.hh')
-rw-r--r--src/bin/eolian_mono/eolian/mono/klass.hh7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/klass.hh b/src/bin/eolian_mono/eolian/mono/klass.hh
index c3d430e..6a2c818 100644
--- a/src/bin/eolian_mono/eolian/mono/klass.hh
+++ b/src/bin/eolian_mono/eolian/mono/klass.hh
@@ -71,13 +71,14 @@ static bool generate_equals_method(OutputIterator sink, Context const &context)
71} 71}
72 72
73/* Get the actual number of functions of a class, checking for blacklisted ones */ 73/* Get the actual number of functions of a class, checking for blacklisted ones */
74template<typename Context>
74static std::size_t 75static std::size_t
75get_implementable_function_count(grammar::attributes::klass_def const& cls) 76get_implementable_function_count(grammar::attributes::klass_def const& cls, Context context)
76{ 77{
77 auto methods = helpers::get_all_implementable_methods(cls); 78 auto methods = helpers::get_all_implementable_methods(cls);
78 return std::count_if(methods.cbegin(), methods.cend(), [](grammar::attributes::function_def const& func) 79 return std::count_if(methods.cbegin(), methods.cend(), [&context](grammar::attributes::function_def const& func)
79 { 80 {
80 return !blacklist::is_function_blacklisted(func.c_name) && !func.is_static; 81 return !blacklist::is_function_blacklisted(func, context) && !func.is_static;
81 }); 82 });
82} 83}
83 84