al_init(3)
π al_init(3) β Allegro 5 API, bestie π
Okay so this page is from the Library Functions Manual, and itβs the al_init(3) page for the Allegro 5 API. Short page, big main-character energy. π
β¨ NAME β¨
al_init β Allegro 5 API
π SYNOPSIS π
#include <allegro5/allegro.h>
#define al_init() (al_install_system(ALLEGRO_VERSION_INT, atexit))
π¦ DESCRIPTION π¦
So al_init is literally like al_install_system(3), except it automatically passes in the version β the ALLEGRO_VERSION_INT one β and uses the atexit function thatβs visible in the current binary. Convenient macro behavior? Obsessed. π
β οΈ Important note, bestie: it is typically wrong to callal_initanywhere except the final game binary. In particular, do not call it inside a shared library unless you know what youβre doing. In those cases, it is better to callal_install_systemeither with aNULLatexit_ptr, or with a pointer toatexitprovided by the user of this shared library. No cap, this is the part to remember. π«Ά
π SEE ALSO π
al_install_system(3)β the referenced icon, periodt. π
π from the Allegro reference manual, al_init(3) β and the footer didnβt give us a date, so no invented date bestie. Mwah! π
β¨
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms