ecore: Fixed se of EINA_MAIN_LOOP_CHECK_RETURN macros with functions with return types

Summary:
Changed uses of EINA_MAIN_LOOP_CHECK_RETURN for EINA_MAIN_LOOP_CHECK_RETURN_VAL
for functions that doesn't have void return types.

These only error out when compiling with --with-profile=debug

@fixed

Reviewers: raster, cedric, smohanty

CC: cedric

Differential Revision: https://phab.enlightenment.org/D765
This commit is contained in:
Felipe Magno de Almeida 2014-04-17 21:08:43 +02:00 committed by Cedric Bail
parent c17d08d2ab
commit 1816949ee5
3 changed files with 6 additions and 6 deletions

View File

@ -793,7 +793,7 @@ _ecore_getopt_help_prepare(const Ecore_Getopt *parser)
{
const char *var;
EINA_MAIN_LOOP_CHECK_RETURN;
EINA_MAIN_LOOP_CHECK_RETURN_VAL(EINA_FALSE);
if (!parser) return EINA_FALSE;
if (_argc < 1)

View File

@ -297,7 +297,7 @@ _ecore_poller_constructor(Eo *obj, Ecore_Poller_Data *poller, Ecore_Poller_Type
EOLIAN static Eina_Bool
_ecore_poller_interval_set(Eo *obj EINA_UNUSED, Ecore_Poller_Data *poller, int interval)
{
EINA_MAIN_LOOP_CHECK_RETURN;
EINA_MAIN_LOOP_CHECK_RETURN_VAL(EINA_FALSE);
int ibit;
@ -330,7 +330,7 @@ _ecore_poller_interval_get(Eo *obj EINA_UNUSED, Ecore_Poller_Data *poller)
{
int ibit, interval = 1;
EINA_MAIN_LOOP_CHECK_RETURN;
EINA_MAIN_LOOP_CHECK_RETURN_VAL(interval);
ibit = poller->ibit;
while (ibit != 0)

View File

@ -300,7 +300,7 @@ _ecore_timer_interval_get(Eo *obj EINA_UNUSED, Ecore_Timer_Data *timer)
{
double ret = -1.0;
EINA_MAIN_LOOP_CHECK_RETURN;
EINA_MAIN_LOOP_CHECK_RETURN_VAL(ret);
_ecore_lock();
ret = timer->in;
_ecore_unlock();
@ -365,7 +365,7 @@ _ecore_timer_pending_get(Eo *obj EINA_UNUSED, Ecore_Timer_Data *timer)
double now;
double ret = 0.0;
EINA_MAIN_LOOP_CHECK_RETURN;
EINA_MAIN_LOOP_CHECK_RETURN_VAL(ret);
_ecore_lock();
@ -438,7 +438,7 @@ ecore_timer_freeze_get(Ecore_Timer *timer)
EOLIAN static int
_ecore_timer_eo_base_event_freeze_get(Eo *obj EINA_UNUSED, Ecore_Timer_Data *timer)
{
EINA_MAIN_LOOP_CHECK_RETURN;
EINA_MAIN_LOOP_CHECK_RETURN_VAL(0);
return timer->frozen;
}