ceptr
 All Data Structures Files Functions Variables Typedefs Macros Modules Pages
debug.h File Reference
#include <stdio.h>
Include dependency graph for debug.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CEPTR_DEBUG
 
#define DEBUG_DEFAULT_MASK   D_NONE
 
#define DEBUG_MASK   0
 
#define DEBUGGER   raise(SIGINT)
 
#define debugging(type)   ((type)&G_debug_mask)
 
#define _debug(type,...)   do {fprintf(stderr,"D%s: ",dtypestr(type));fprintf(stderr,__VA_ARGS__);}while(0);
 
#define debug(type,...)   do {if debugging(type) _debug(type,__VA_ARGS__);} while(0);
 

Enumerations

enum  {
  D_NONE =0x0000, D_ALL =0xFFFF, D_SPEC =0x8000, D_SIGNALS =0x0001,
  D_REDUCE =0x0002, D_REDUCEV =0x0004, D_STX_MATCH =0x0008, D_CLOCK =0x0010,
  D_STREAM =0x0020, D_LOCK =0x0040, D_LISTEN =0x0080, D_PROTOCOL =0x0100,
  D_TREE =0x0200, D_TRANSCODE =0x0400, D_STEP =0x0800, D_SOCKET =0x1000,
  D_BOOT =0x2000, D_STX_BUILD =0x4000
}
 

Functions

char * dtypestr (int type)
 
void debug_enable (int type)
 
void debug_disable (int type)
 

Variables

int G_debug_mask
 

Detailed Description

Definition in file debug.h.