1al_assert(3)                    Allegro manual                    al_assert(3)
2
3
4

NAME

6       al_assert - Asserts at the specified file and line number. Allegro game
7       programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       void al_assert(const char *file, int line);
14

DESCRIPTION

16       Raises an assert for an error at the specified file  and  line  number.
17       The  file  parameter  is always given in ASCII format. By default, this
18       will call the system driver's assert handler. If  there  is  none,  the
19       error  will  be  sent to stderr and the program will abort. However, if
20       the environment variable ALLEGRO_ASSERT is set, this function writes  a
21       message into the file specified by the environment variable and program
22       execution will continue. If none of this behaviours is wanted, you  can
23       override them with a custom assert handler.
24
25       You will usually want to use the ASSERT() macro instead of calling this
26       function directly.
27
28

SEE ALSO

30       ASSERT(3), al_trace(3), register_assert_handler(3)
31
32
33
34Allegro                          version 4.2.3                    al_assert(3)
Impressum