forked from enlightenment/efl
eo-cxx: Added catch-all to_c interoperability function
This commit is contained in:
parent
10502307a7
commit
df5f57d0ad
|
@ -37,6 +37,12 @@ to_c(bool x)
|
||||||
return x ? EINA_TRUE : EINA_FALSE;
|
return x ? EINA_TRUE : EINA_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <typename T>
|
||||||
|
T to_c(T const& v)
|
||||||
|
{
|
||||||
|
return v;
|
||||||
|
}
|
||||||
|
|
||||||
//// From C to C++
|
//// From C to C++
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
|
Loading…
Reference in New Issue