0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2025-03-11 17:08:46 +00:00

Events: create and enqueue in one macro

This commit is contained in:
Maria Matejka 2023-11-23 12:06:58 +01:00
parent 5a916ed53f
commit 48abd6a963

View File

@ -71,5 +71,8 @@ ev_new_init(pool *p, void (*hook)(void *), void *data)
return e;
}
#define ev_new_send(loop, pool, hook, data) \
ev_send_loop((loop), ev_new_init((pool), (hook), (data)))
#endif