felipealmeida pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=6dc0a07a8582d5436ed1783d28033f48f3f8c8cc
commit 6dc0a07a8582d5436ed1783d28033f48f3f8c8cc Author: Felipe Magno de Almeida <fel...@expertisesolutions.com.br> Date: Tue Oct 25 12:21:12 2016 -0200 eo: Fix compilation of macro in C++ because of goto Moved variable cross-definition to the top, so no more cross-definition between goto would happen. --- src/lib/eo/Eo.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/eo/Eo.h b/src/lib/eo/Eo.h index c5b4e75..4ca0713 100644 --- a/src/lib/eo/Eo.h +++ b/src/lib/eo/Eo.h @@ -747,13 +747,14 @@ typedef struct _Efl_Object_Call_Cache #define EFL_FUNC_COMMON_OP(Obj, Name, DefRet) \ static EFL_FUNC_TLS Efl_Object_Call_Cache ___cache; /* static 0 by default */ \ Efl_Object_Op_Call_Data ___call; \ - if (EINA_UNLIKELY((___cache.op == EFL_NOOP) || \ + _Eo_##Name##_func _func_; \ + if (EINA_UNLIKELY((___cache.op == EFL_NOOP) || \ (___cache.generation != _efl_object_init_generation))) \ goto __##Name##_op_create; /* yes a goto - see below */ \ __##Name##_op_create_done: \ if (!_efl_object_call_resolve((Eo *) Obj, #Name, &___call, &___cache, \ __FILE__, __LINE__)) return DefRet; \ - _Eo_##Name##_func _func_ = (_Eo_##Name##_func) ___call.func; + _func_ = (_Eo_##Name##_func) ___call.func; // yes this looks ugly with gotos BUT it moves rare "init" handling code // out of the hot path and thus l1 instruction cach prefetch etc. so it --