check_cpu(3alleg4)

✨ check_cpu β€” Allegro manual, but make it cute ✨

okay bestie, welcome to check_cpu(3alleg4) πŸ’… this one lives in the Allegro game programming library, and it's honestly a little legend. she's short, she's sweet, she knows what your CPU is. no cap.


🌸 NAME 🌸

check_cpu β€” detects the CPU type. that's it, that's the whole job. Allegro game programming library represent 🫢


✨ SYNOPSIS ✨

#include <allegro.h>

void check_cpu();

like, that's the entire vibe. one include, one function, zero arguments. she takes nothing and she gives you everything πŸ’–


πŸ¦‹ DESCRIPTION πŸ¦‹

so check_cpu() goes and detects the CPU type, and while she's at it she sets the following global variables. yeah. the girl works in mysterious ways and also in global variables, which is very her πŸ‘‘

lowkey important: you don't normally need to call this yourself, because allegro_init() will do it for you. it's giving "I already handled it, bestie, relax" 😌 so unless you have a very specific reason, let Allegro do her thing.

πŸŽ€ SEE ALSO πŸŽ€

the whole cpu-squad, the girlies, the entourage:


and that's the page, bestie πŸ¦‹πŸ’œ go forth and let allegro_init() do the CPU detective work for you, main character style. no need to call it yourself, fr fr.

this has been check_cpu(3alleg4) from the Allegro manual, version 4.4.3, mwah πŸ’‹