forked from enlightenment/efl
From: Eduardo Felipe <eduardofelipe87@gmail.com>
Upon creating a timer, it's callback must return an int, otherwise it would panic. The python bindings do the nicety of, if the callback function returns nothing, automatically canceling the reschedule of the timer. This patch does the same for lua. It's a oneliner. SVN revision: 49051
This commit is contained in:
parent
1ea1a6d3cc
commit
023da4d5ba
|
@ -863,7 +863,7 @@ _edje_lua_timer_cb(void *data)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
res = luaL_checkint(L, -1);
|
res = luaL_optint(L, -1, ECORE_CALLBACK_CANCEL);
|
||||||
lua_pop(L, 1); // -- res
|
lua_pop(L, 1); // -- res
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue