ALLEGRO_VERSION(3)
π 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
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms