forked from enlightenment/efl
a791d97bfc
This affects eo_do() and eo_add() that used to use the ({}) GCCism. Following a discussion with Peter de Ridder after my talk at FOSDEM, we've decided to reopen the GCCism (works with other gcc compatible compilers like clang and intelc) discussion, and after a bit of back and forth it was decided to make things more portable, at the cost of ease of use. For example: if (eo_do(obj, visible_get())) is no longer allowed, the portable alternative Eina_Bool tmp; if (eo_do_ret(obj, tmp, visible_get())) is to be used instead. However: eo_do(obj, a = a_get(), b = b_get(), bool_set(!bool_get)) are still allowed and OK. eo_do(obj, if (a_get()) return;); is no longer allowed, but: eo_do(obj, if (a_get()) something()); is still allowed. For clarity, this commit only incorporates the Eo changes, and not the EFL changes to make the efl conform with this change. Thanks again to Peter de Ridder for triggering this important discussion which led to this change. |
||
---|---|---|
.. | ||
access | ||
children | ||
composite_objects | ||
constructors | ||
function_overrides | ||
interface | ||
mixin | ||
signals | ||
suite | ||
.gitignore | ||
eunit_tests.h |