eolian-cxx: Add Eina_Bool* also to C++ interop.
authorSavio Sena <savio@expertisesolutions.com.br>
Tue, 30 Sep 2014 21:08:06 +0000 (18:08 -0300)
committerSavio Sena <savio@expertisesolutions.com.br>
Tue, 30 Sep 2014 21:08:06 +0000 (18:08 -0300)
src/bindings/eo_cxx/eo_cxx_interop.hh

index a6b3b37188ce3513906141685bec14cc8da948b7..cf643f19d3dcc1744f1d73e42a1ae205f5904a6d 100644 (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)
 {