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

ASSERT - Debugging helper macro to assert. Allegro game programming library.

Description

       Debugging  helper  macro.  Normally  compiles away to nothing, but if you defined the preprocessor symbol
       DEBUGMODE before including Allegro headers, it will check the supplied condition and call al_assert()  if
       it  fails, whose default action is to stop the program and report the assert. You can use this macro even
       when Allegro has not been initialised. Example:

          #define DEBUGMODE
          #include
          ...
          void my_blitter(BITMAP *source, int flags)
          {
             int some_variables;
             ASSERT(source != NULL);
             ASSERT(flags & GAME_RUNNING);
             ...
          }

Name

       ASSERT - Debugging helper macro to assert. Allegro game programming library.

See Also

al_assert(3alleg4), TRACE(3alleg4), register_assert_handler(3alleg4), expackf(3alleg4)

Allegro                                           version 4.4.3                                  ASSERT(3alleg4)

Synopsis

#include<allegro.h>voidASSERT(condition);

See Also