forked from enlightenment/efl
eolian-cxx: Add Eina_Bool* also to C++ interop.
This commit is contained in:
parent
df7d02650b
commit
8671a8d8e2
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue