Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
TRACE(3)			Allegro	manual			      TRACE(3)

NAME
       TRACE - Debugging helper	macro to trace messages. Allegro game program-
       ming library.

SYNOPSIS
       #include	<allegro.h>

       void TRACE(char *msg, ...);

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++);
	     ...
	  }

SEE ALSO
       al_trace(3), ASSERT(3), register_trace_handler(3)

Allegro				 version 4.4.3			      TRACE(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=TRACE&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help