logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

TRACE - Debugging helper macro to trace messages. 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 passes the supplied  message  given  in  ASCII  format  to
       al_trace().  Example:

          #define DEBUGMODE
          #include
          ...
          void my_blitter(BITMAP *source, int flags)
          {
             static int count_call = 0;
             TRACE("my_blitter() called %d times.\n", count_call++);
             ...
          }

Name

       TRACE - Debugging helper macro to trace messages. Allegro game programming library.

See Also

al_trace(3alleg4), ASSERT(3alleg4), register_trace_handler(3alleg4)

Allegro                                           version 4.4.3                                   TRACE(3alleg4)

Synopsis

#include<allegro.h>voidTRACE(char*msg,...);

See Also