os_version(3)
β¨ NAME β¨
hiii bestie π welcome to the Allegro manual page for os_version(3) β and yes, its ride-or-die os_revision is here too. This whole thing is about the Version of the OS currently running, from the Allegro game programming library. No cap.
os_version,os_revisionβ version of the OS currently running, Allegro game programming library.
π¦ SYNOPSIS π¦
#include <allegro.h>
extern int os_version;
extern int os_revision;
π DESCRIPTION π
okay so os_version and os_revision are the major and minor version of the Operating System that's currently running. They get set by allegro_init(). Periodt.
If Allegro, for some reason, was not able to retrieve the version of the Operating System, then os_version and os_revision will be set to -1. It's giving "couldn't get the vibe check from the OS" π.
Example time, bestie: under Win98 SE (v4.10.2222), os_version will be set to 4 and os_revision to 10. Iconic.
tiny but important: if Allegro couldn't retrieve the OS version, bothos_versionandos_revisionare-1. That's the whole mood.
π SEE ALSO π
kisses from the footer: Allegro version 4.4.3, on the os_version(3) page. The date slot is empty on this footer, so no date to spill β just version vibes, periodt. π
π«Άβ¨
π¦ 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