eo-cxx: Add static assert to check boolean size.
This commit is contained in:
parent
788d4d6c3f
commit
1a6013e959
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue