1al_init(3) al_init(3)
2
3
4
6 al_init - Allegro 5 API
7
9 #include <allegro5/allegro.h>
10
11 #define al_init() (al_install_system(ALLEGRO_VERSION_INT, atexit))
12
14 Like al_install_system(3), but automatically passes in the version and
15 uses the atexit function visible in the current binary.
16
17 Note: It is typically wrong to call al_init anywhere except the
18 final game binary. In particular, do not call it inside a
19 shared library unless you know what you’re doing. In those cas‐
20 es, it is better to call al_install_system either with a NULL
21 atexit_ptr, or with a pointer to atexit provided by the user of
22 this shared library.
23
25 al_install_system(3)
26
27
28
29Allegro reference manual al_init(3)