eo-cxx: Add static assert to check boolean size.

This commit is contained in:
Savio Sena 2014-10-03 15:04:27 -03:00
parent 788d4d6c3f
commit 1a6013e959
1 changed files with 1 additions and 0 deletions

View File

@ -40,6 +40,7 @@ to_c(bool x)
inline Eina_Bool*
to_c(bool* x)
{
static_assert(sizeof(bool) == sizeof(Eina_Bool), "");
return reinterpret_cast<Eina_Bool*>(x);
}