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

NAME

6       TRACE - Debugging helper macro to trace messages. Allegro game programā€
7       ming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       void TRACE(char *msg, ...);
14

DESCRIPTION

16       Debugging helper macro. Normally compiles away to nothing, but  if  you
17       defined  the  preprocessor  symbol  DEBUGMODE  before including Allegro
18       headers, it passes the  supplied  message  given  in  ASCII  format  to
19       al_trace().  Example:
20
21          #define DEBUGMODE
22          #include
23          ...
24          void my_blitter(BITMAP *source, int flags)
25          {
26             static int count_call = 0;
27             TRACE("my_blitter() called %d times.\n", count_call++);
28             ...
29          }
30
31

SEE ALSO

33       al_trace(3), ASSERT(3), register_trace_handler(3)
34
35
36
37Allegro                          version 4.4.2                        TRACE(3)
Impressum