TRACE
Debugging helper macro to trace messages.
Description
void TRACE(char *msg, ...
);
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 <allegro.h>
...
void my_blitter(BITMAP *source, int flags)
{
static int count_call = 0;
TRACE("my_blitter() called %d times.\n", count_call++);
...
}
Related Discussions
The following threads each have code containing this keyword:
Note: You can click on the numbers to jump directly to the posts that reference this page.
Related Projects
The following projects include source code containing this keyword: