Added a macro to easily call functions on a timer.

This commit is contained in:
2026-09-26 01:34:33 -04:00
parent b6315f3076
commit 64421d8ff7
+3 -1
View File
@@ -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)
/**