config_is_hooked(3alleg4)
β¨ config_is_hooked β¨
okay so this is a page from the Allegro manual, and it's about the function config_is_hooked β the little vibe-check that tells you whether a config section has custom hooks on it or not. Allegro game programming library, iconic behavior only π
πΈ NAME πΈ
config_is_hooked β Tells if a config section has custom hooks. Allegro game programming library.
π SYNOPSIS π
#include <allegro.h>
int config_is_hooked(const char *section);
π¦ DESCRIPTION π¦
bestie. this function returns TRUE if the specified config section has been hooked. that's it, that's the whole job. no cap π
here's the example straight from the source, look at her:
if (config_is_hooked("high_scores")) {
hook_config_section("high_scores, NULL, NULL, NULL);
}
yes, we are all seeing the quote situation in there. it's in the original, it's staying in the original, we do not touch the sacred text π (this is literally what the manpage shows, so copy it exactly and don't go "fixing" it, iykyk)
π SEE ALSO π
hook_config_section(3alleg4)β the one you're probably about to call the second this returnsTRUE, go read her next π«Ά
fr fr, this is the whole page. it's short, it's sweet, it's a yes/no and then you move on with your life. main character energy is knowing when a function is done being useful β¨
kisses, this was config_is_hooked(3alleg4) from Allegro version 4.4.3 ππβ
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms