liberscribble/include/scblog.h File Reference

#include <stdio.h>
#include <glib.h>
#include <syslog.h>

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

Go to the source code of this file.

Defines

#define SCB_TRACE_ON   0
#define SCB_DUMP_ON   0
#define SCB_WARNING_ON   0
#define SCB_ERROR_ON   1
#define SCB_ENABLE_CHECK   1
#define SCB_DEBUG_ON   0
#define SYSLOG_ON   1
#define SCB_TRACE(x, args...)   do {} while (0)
#define SCB_DUMP(x, args...)   do {} while (0)
#define SCB_WARN(x, args...)   do {} while (0)
#define SCB_ERROR(x, args...)
#define SCB_RET_FALSE_IF(expr, x, args...)   if (expr) { SCB_ERROR(x, ##args); return FALSE; }
#define SCB_RET_NULL_IF(expr, x, args...)   if (expr) { SCB_ERROR(x, ##args); return NULL; }
#define SCB_RET_IF(expr, x, args...)   if (expr) { SCB_ERROR(x, ##args); return; }
#define SCB_RET_INT_IF(expr, ret, x, args...)   if (expr) { SCB_ERROR(x, ##args); return ret; }


Define Documentation

#define SCB_DEBUG_ON   0

Definition at line 33 of file scblog.h.

#define SCB_DUMP ( x,
args...   )     do {} while (0)

Definition at line 65 of file scblog.h.

#define SCB_DUMP_ON   0

Definition at line 29 of file scblog.h.

#define SCB_ENABLE_CHECK   1

Definition at line 32 of file scblog.h.

#define SCB_ERROR ( x,
args...   ) 

Value:

{\
    syslog(LOG_ERR, "(SCB_ERROR)" __FILE__ ":%d,%s() " x "\n", __LINE__, __FUNCTION__ , ##args);\
    fprintf(stderr, "(SCB_ERROR)" __FILE__ ":%d,%s() " x "\n", __LINE__, __FUNCTION__ , ##args);\
}

Definition at line 85 of file scblog.h.

#define SCB_ERROR_ON   1

Definition at line 31 of file scblog.h.

#define SCB_RET_FALSE_IF ( expr,
x,
args...   )     if (expr) { SCB_ERROR(x, ##args); return FALSE; }

Definition at line 98 of file scblog.h.

#define SCB_RET_IF ( expr,
x,
args...   )     if (expr) { SCB_ERROR(x, ##args); return; }

Definition at line 100 of file scblog.h.

#define SCB_RET_INT_IF ( expr,
ret,
x,
args...   )     if (expr) { SCB_ERROR(x, ##args); return ret; }

Definition at line 101 of file scblog.h.

#define SCB_RET_NULL_IF ( expr,
x,
args...   )     if (expr) { SCB_ERROR(x, ##args); return NULL; }

Definition at line 99 of file scblog.h.

#define SCB_TRACE ( x,
args...   )     do {} while (0)

Definition at line 51 of file scblog.h.

#define SCB_TRACE_ON   0

Copyright (C) 2005-2008 iRex Technologies B.V. All rights reserved.

Definition at line 28 of file scblog.h.

#define SCB_WARN ( x,
args...   )     do {} while (0)

Definition at line 80 of file scblog.h.

#define SCB_WARNING_ON   0

Definition at line 30 of file scblog.h.

#define SYSLOG_ON   1

Definition at line 35 of file scblog.h.


Generated on Sun Dec 14 17:15:00 2008 by  doxygen 1.5.6