Add a deprecation message to the _hook_use functions

To make it easier to migrate, add a hint that tells us what to use instead.

Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
pull/195/head
Gergely Nagy 7 years ago
parent 54771ad718
commit 646a9d65f9

@ -120,6 +120,7 @@ extern Kaleidoscope_ Kaleidoscope;
"layer.getState") "layer.getState")
/* -- DEPRECATED aliases; remove them when there are no more users. -- */ /* -- DEPRECATED aliases; remove them when there are no more users. -- */
void event_handler_hook_use(Kaleidoscope_::eventHandlerHook hook)
void event_handler_hook_use(Kaleidoscope_::eventHandlerHook hook) __attribute__((deprecated)); __attribute__((deprecated("Use Kaleidoscope.useEventHandlerHook instead")));
void loop_hook_use(Kaleidoscope_::loopHook hook) __attribute__((deprecated)); void loop_hook_use(Kaleidoscope_::loopHook hook)
__attribute__((deprecated("Use Kaleidoscope.useLoopHook instead")));

Loading…
Cancel
Save