eolian-cxx: Add Eina_Bool* also to C++ interop.

This commit is contained in:
Savio Sena 2014-09-30 18:08:06 -03:00
parent df7d02650b
commit 8671a8d8e2
1 changed files with 6 additions and 0 deletions

View File

@ -37,6 +37,12 @@ to_c(bool x)
return x ? EINA_TRUE : EINA_FALSE;
}
inline Eina_Bool*
to_c(bool* x)
{
return static_cast<Eina_Bool*>(x);
}
template <typename T>
T to_c(T const& v, typename std::enable_if<!std::is_base_of<efl::eo::base, T>::value>::type* = 0)
{