summaryrefslogtreecommitdiff
path: root/src/bin/eolian_cxx
diff options
context:
space:
mode:
authorSavio Sena <savio@expertisesolutions.com.br>2014-09-12 16:47:51 -0300
committerSavio Sena <savio@expertisesolutions.com.br>2014-09-12 16:47:51 -0300
commitcc70746d1012d2dfbc758a3f456e2ad25feb3fbc (patch)
treeed1052c7c46abc024f3f4c2246ac1f97f4eea9b0 /src/bin/eolian_cxx
parent5a7d60cb778cb21d1d94d71a277feffa2c467473 (diff)
eolian-cxx: Added new wrappers to handle Eolian_Function.
function_is_constructor() and function_is_visible().
Diffstat (limited to 'src/bin/eolian_cxx')
-rw-r--r--src/bin/eolian_cxx/eolian_wrappers.hh28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/bin/eolian_cxx/eolian_wrappers.hh b/src/bin/eolian_cxx/eolian_wrappers.hh
index b4145d198e..9277bda019 100644
--- a/src/bin/eolian_cxx/eolian_wrappers.hh
+++ b/src/bin/eolian_cxx/eolian_wrappers.hh
@@ -198,6 +198,34 @@ function_type(Eolian_Function const& func)
198 : efl::eolian::eo_function::regular_ 198 : efl::eolian::eo_function::regular_
199 ; 199 ;
200} 200}
201
202inline bool
203function_is_constructor(Eolian_Class const& cls, Eolian_Function const& func)
204{
205 return ::eolian_function_is_constructor(&func, &cls);
206}
207
208inline bool
209function_is_visible(Eolian_Function const& func, Eolian_Function_Type func_type)
210{
211 return (::eolian_function_scope_get(&func) == EOLIAN_SCOPE_PUBLIC &&
212 ! ::eolian_function_is_legacy_only(&func, func_type));
213}
214
215inline bool
216function_is_visible(Eolian_Function const& func, method_t)
217{
218 return (::eolian_function_scope_get(&func) == EOLIAN_SCOPE_PUBLIC &&
219 ! ::eolian_function_is_legacy_only(&func, method_t::value));
220}
221
222inline bool
223function_is_visible(Eolian_Function const& func)
224{
225 return (::eolian_function_scope_get(&func) == EOLIAN_SCOPE_PUBLIC &&
226 ! ::eolian_function_is_legacy_only(&func, function_op_type(func)));
227}
228
201inline bool 229inline bool
202function_is_visible(Eolian_Constructor const& ctor_) 230function_is_visible(Eolian_Constructor const& ctor_)
203{ 231{