summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2017-07-27 13:19:49 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2017-07-27 13:20:20 -0300
commit634f7d0dbb191dfa6805e1bd1c909e37d6a12a3b (patch)
treec675838a981c6e1bac86847ff70acdac16c6f422
parent45a767632d417043936622f78597c06dc7a8cf94 (diff)
downloadefl-634f7d0dbb191dfa6805e1bd1c909e37d6a12a3b.tar.gz
eo-cxx: Add overload for Eina_Bool inout handling interoperability
Add convert_inout_impl overload to handle bool/Eina_Bool conversion in inout direction.
-rw-r--r--src/bindings/cxx/eo_cxx/eo_cxx_interop.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bindings/cxx/eo_cxx/eo_cxx_interop.hh b/src/bindings/cxx/eo_cxx/eo_cxx_interop.hh
index f8444ddc64..edc68f1f39 100644
--- a/src/bindings/cxx/eo_cxx/eo_cxx_interop.hh
+++ b/src/bindings/cxx/eo_cxx/eo_cxx_interop.hh
@@ -245,6 +245,10 @@ T* convert_inout_impl(T& v, tag<T, T*>)
{
return v;
}
+inline Eina_Bool convert_inout_impl(bool v, tag<bool, Eina_Bool>)
+{
+ return v ? EINA_TRUE : EINA_FALSE;
+}
inline void* convert_inout_impl(void* v, tag<void, void>)
{
return v;