al_destroy_event_queue(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

al_destroy_event_queue β€” Allegro 5 API. bestie, this is the function that says bye-bye to your event queue, no cap. πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro5/allegro.h>

void al_destroy_event_queue(ALLEGRO_EVENT_QUEUE *queue)

πŸ’… DESCRIPTION πŸ’…

okay so listen. This function destroys the event queue specified. That's the queue you hand over. πŸ’₯

And the way that it's so clean? All event sources that are currently registered with the queue get automatically unregistered before the queue is destroyed. So you don't have to go around unregistering them yourself, bestie β€” the queue handles its own goodbye tour. 🫢

Also, plot twist: if queue is NULL, this function does nothing. Absolutely nothing. It just vibes. (since 5.2.9) ✨

this is a destroy function, so it's giving permanent deletion energy. Handle with care, gorgeous. πŸ’…

πŸ‘€ SEE ALSO πŸ‘€


and that's the whole page, bestie. source: Allegro reference manual, page: al_destroy_event_queue(3alleg5), date: not listed on this page. mwah πŸ’‹

πŸ“¦ where this page comes from