ALLEGRO_VERSION(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

πŸ’– ALLEGRO_VERSION πŸ’–

okay bestie, welcome to the Allegro manual, section 3, and today's main character is a tiny little macro that knows exactly how old your Allegro is πŸ’…


✨ NAME ✨

ALLEGRO_VERSION β€” it's literally defined to the major version of Allegro. that's it. that's the whole job. and it slays at it πŸŽ€


🌸 SYNOPSIS 🌸

#include <allegro.h>

#define ALLEGRO_VERSION

so you pull in <allegro.h> and boom, the macro is just there, no cap πŸ¦‹


πŸ‘‘ DESCRIPTION πŸ‘‘

ALLEGRO_VERSION is defined to the major version of Allegro. like, the big number. the vibe-setting number.

say your version number looks like 4.1.16 β€” in that case this macro is defined to the integer 4. the 4 is the whole personality here, the .1.16 is just along for the ride πŸ™ˆ

so yeah: major version, integer, done. periodt ✨


fr fr, if you're checking versions in your code, this is the girlypop that tells you which generation of Allegro you're dealing with πŸ’œ

okay that's the page!! this was brought to you by Allegro, version 4.4.3, and by the ALLEGRO_VERSION(3) page of the Allegro manual β€” stay iconic, go write some code, mwah πŸ«ΆπŸ’–πŸŒˆ

πŸ“¦ where this page comes from