MACSio  0.9
Multi-purpose, Application-Centric, Scalable I/O Proxy App
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
debug.h File Reference
#include <stdlib.h>

Go to the source code of this file.

Macros

#define __STRING(x)   #x
 
#define JASSERT(cond)   do {} while(0)
 
#define MC_ERROR(x,...)   mc_error(x, ##__VA_ARGS__)
 
#define MC_SET_DEBUG(x)   if (0) mc_set_debug(x)
 
#define MC_GET_DEBUG()   (0)
 
#define MC_SET_SYSLOG(x)   if (0) mc_set_syslog(x)
 
#define MC_DEBUG(x,...)   if (0) mc_debug(x, ##__VA_ARGS__)
 
#define MC_INFO(x,...)   if (0) mc_info(x, ##__VA_ARGS__)
 

Functions

void mc_set_debug (int debug)
 
int mc_get_debug (void)
 
void mc_set_syslog (int syslog)
 
void mc_debug (const char *msg,...)
 
void mc_error (const char *msg,...)
 
void mc_info (const char *msg,...)
 

Macro Definition Documentation

#define __STRING (   x)    #x

Definition at line 32 of file debug.h.

#define JASSERT (   cond)    do {} while(0)

Definition at line 37 of file debug.h.

#define MC_ERROR (   x,
  ... 
)    mc_error(x, ##__VA_ARGS__)

Definition at line 51 of file debug.h.

#define MC_SET_DEBUG (   x)    if (0) mc_set_debug(x)

Definition at line 60 of file debug.h.

#define MC_GET_DEBUG ( )    (0)

Definition at line 61 of file debug.h.

#define MC_SET_SYSLOG (   x)    if (0) mc_set_syslog(x)

Definition at line 62 of file debug.h.

#define MC_DEBUG (   x,
  ... 
)    if (0) mc_debug(x, ##__VA_ARGS__)

Definition at line 63 of file debug.h.

#define MC_INFO (   x,
  ... 
)    if (0) mc_info(x, ##__VA_ARGS__)

Definition at line 64 of file debug.h.

Function Documentation

void mc_set_debug ( int  debug)

Definition at line 36 of file debug.c.

int mc_get_debug ( void  )

Definition at line 37 of file debug.c.

void mc_set_syslog ( int  syslog)

Definition at line 39 of file debug.c.

void mc_debug ( const char *  msg,
  ... 
)

Definition at line 44 of file debug.c.

void mc_error ( const char *  msg,
  ... 
)

Definition at line 59 of file debug.c.

void mc_info ( const char *  msg,
  ... 
)

Definition at line 72 of file debug.c.