From df310e14f43d4911597bfb4441077d7e319b3154 Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Fri, 27 Feb 2015 15:07:38 +0000 Subject: [PATCH] elm_code: Fix finalized check macro --- legacy/elm_code/src/lib/elm_code_widget.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/legacy/elm_code/src/lib/elm_code_widget.c b/legacy/elm_code/src/lib/elm_code_widget.c index 8f9b4686e0..310db71e17 100644 --- a/legacy/elm_code/src/lib/elm_code_widget.c +++ b/legacy/elm_code/src/lib/elm_code_widget.c @@ -27,12 +27,14 @@ Eina_Unicode status_icons[] = { 0 }; -#define EO_CONSTRUCTOR_CHECK_RETURN(obj) \ - if (eo_do(obj, eo_finalized_get())) \ +#define EO_CONSTRUCTOR_CHECK_RETURN(obj) do { \ + Eina_Bool finalized; \ + if (eo_do_ret(obj, finalized, eo_finalized_get())) \ { \ ERR("This function is only allowed during construction."); \ return; \ - } + } \ +} while (0) EOLIAN static void _elm_code_widget_eo_base_constructor(Eo *obj, Elm_Code_Widget_Data *pd)