logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Description

       Raises  an  assert for an error at the specified file and line number. The file parameter is always given
       in ASCII format. By default, this will call the system driver's assert handler. If  there  is  none,  the
       error  will  be  sent  to  stderr  and  the  program  will  abort.  However,  if the environment variable
       ALLEGRO_ASSERT is set, this function writes a message into the file specified by the environment variable
       and program execution will continue. If none of this behaviours is wanted, you can override them  with  a
       custom assert handler.

       You will usually want to use the ASSERT() macro instead of calling this function directly.

Name

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

See Also

ASSERT(3alleg4), al_trace(3alleg4), register_assert_handler(3alleg4)

Allegro                                           version 4.4.3                               al_assert(3alleg4)

Synopsis

#include<allegro.h>voidal_assert(constchar*file,intline);

See Also