allegro_404_char(3alleg4)

πŸ’– allegro_404_char πŸ’–

okay bestie, so this is a page from the Allegro manual β€” section 3alleg4, if you're keeping track β€” and it's all about one tiny lil global variable. her name is allegro_404_char and honestly? she's iconic.


✨ NAME ✨

allegro_404_char β€” the character Allegro pulls out when it literally cannot find a glyph. it's giving "substitute teacher energy" fr fr 🫢


🌸 SYNOPSIS 🌸

#include <allegro.h>

extern int allegro_404_char;

πŸŽ€ DESCRIPTION πŸŽ€

so here's the tea β˜• β€” when Allegro goes looking for a glyph it needs inside a font and cannot find it, it does not just give up and cry (unlike me). nope. it just outputs whatever character is sitting in allegro_404_char instead. a little placeholder moment, we love a backup plan πŸ’…

by default, that global is set to the caret symbol, '^'. but bestie, you are not stuck with the caret β€” it's a global, so you can swap it out for any other character you want. go off. make it yours. πŸ¦‹

example time:

/* Show unknown glyphs with an asterisk. */
allegro_404_char = '*';

look at her. one line. changing lives. 😭✨


πŸ’œ SEE ALSO πŸ’œ


and that's the whole page, no cap 🧚

this lil slice of wisdom comes to you courtesy of Allegro version 4.4.3, and yes she is allegro_404_char(3alleg4) β€” same girl, same manual, same era. periodt. πŸ’–πŸ‘‘