END_OF_FUNCTION(3alleg4)

πŸ’– NAME πŸ’–

END_OF_FUNCTION β€” bestie, this one locks the code used by a timer. It's from the Allegro manual, section 3alleg4, and it's part of the Allegro game programming library. πŸŽ€


✨ SYNOPSIS ✨

#include <allegro.h>

Macro END_OF_FUNCTION(function_name);

Yes queen, it's a macro. A whole macro. With one argument. We love a low-maintenance icon. πŸ’…


🌸 DESCRIPTION 🌸

okay so, plot twist: interrupts exist 😭 and because of them, you are required to lock all the code that your timer routines use. Like, all of it. No skipping. The timer doesn't care about your vibes, it just wants the code to stay put. πŸ’€

See the description of install_int_ex() for a more detailed explanation and usage example. That's where the lore lives, bestie β€” go read it. πŸ“–βœ¨

🫢 reminder: END_OF_FUNCTION is literally the closing brace energy of the locking thing. If you're not sure what you're locking or why, install_int_ex() is your girl. Go. πŸƒβ€β™€οΈπŸ’¨

πŸ¦‹ SEE ALSO πŸ¦‹


and that's the whole page, periodt. πŸ’…βœ¨

Allegro, version 4.4.3 β€” mwah, iconic, no notes. πŸŽ€πŸ’–πŸ‘‘