diff --git a/src/liborng/orng_macros.h b/src/liborng/orng_macros.h index 2c50b97..028e117 100644 --- a/src/liborng/orng_macros.h +++ b/src/liborng/orng_macros.h @@ -34,8 +34,10 @@ /** * Deferred function helpers */ +#define CALL_ON_TIMEOUT(T,C) \ + this->get_tree()->create_timer(T)->connect("timeout", C) #define CALL_NEXT_FRAME(C) \ - this->get_tree()->create_timer(SMALL_NUMBER)->connect("timeout", C) + CALL_ON_TIMEOUT(SMALL_NUMBER,C) /**