taptdebug.h File Reference


Detailed Description

Explicit function-level tracing debug functionality (DebugLogger class).

Author:
Trent Apted <tapted@it.usyd.edu.au>
Revision
191
Date
2005-08-05 10:55:59 +1000 (Fri, 05 Aug 2005)

Definition in file taptdebug.h.

#include <cstdio>

Include dependency graph for taptdebug.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define DODEBUG(level, args)
 Print a debugging statement if the debugging level level is enabled.
#define EFENCE_INIT()   enum {}
 Print a message to stderr on static initialisation if EFENCE_DEBUG is enabled.
#define SETDEBUG(level)   TAPTDBGLEV = level
 Set the run-time debugging level to level.

Enumerations

enum  DEBUG_FLAGS {
  DEBUG_NONE, DEBUG_ERROR, DEBUG_WARNING, DEBUG_NOTICE,
  DEBUG_FUNCTION, DEBUG_INFO, DEBUG_INTWARNINGS, DEBUG_INTERRUPT,
  DEBUG_ANY
}
 Debugging flags. More...

Functions

int taptaudio_debug_printf (const char *fmt,...) __attribute__((format(printf
 Debugging printf function.

Variables

FILE * taptaudio_debug_file
 The FILE* to output debugging statements to.
unsigned long TAPTDBGLEV
 The debugging level, if not previously defined.


Define Documentation

#define DODEBUG level,
args   ) 
 

Value:

do { if (TAPTDBGLEV >= DEBUG_ ## level) { \
    taptaudio_debug_printf args ; \
    fprintf(taptaudio_debug_file, " (%s:%d)\n", __FILE__, __LINE__ ) ; \
    } } while (0)
Print a debugging statement if the debugging level level is enabled.

args needs to be in the form '("printf-format", ... / * args * /)' without the single quotes (but with the parentheses).

Referenced by AudioSystem::AudioSystem(), AudioSystemImpl::AudioSystemImpl(), FileSample::FileSample(), AudioSystemImpl::freeSample(), AudioSystemMixerT::loadSample(), AudioSystemImpl::loadSample(), AudioSystemImpl::mixSample(), Recording::skipfill(), AudioSystemImpl::startRec(), AudioSystemImpl::stopRec(), and AudioSystemImpl::~AudioSystemImpl().

 
#define EFENCE_INIT  )     enum {}
 

Print a message to stderr on static initialisation if EFENCE_DEBUG is enabled.

#define SETDEBUG level   )     TAPTDBGLEV = level
 

Set the run-time debugging level to level.

Referenced by AudioSystem::setDebugLevel().


Enumeration Type Documentation

enum DEBUG_FLAGS
 

Debugging flags.

Definition at line 25 of file taptdebug.h.


Function Documentation

int taptaudio_debug_printf const char *  fmt,
  ...
 

Debugging printf function.


Variable Documentation

FILE* taptaudio_debug_file
 

The FILE* to output debugging statements to.

Definition at line 13 of file taptdebug.cpp.

Referenced by AudioSystem::setDebugFile(), and taptaudio_debug_printf().

unsigned long TAPTDBGLEV
 

The debugging level, if not previously defined.

Definition at line 14 of file taptdebug.cpp.


Generated on Fri Aug 5 19:43:21 2005 for TaptAudio by  doxygen 1.4.3