liberscribble/include/scblog.h File Reference
#include <stdio.h>
#include <glib.h>
#include <syslog.h>
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_DUMP |
( |
x, |
|
|
args... |
|
) |
do {} while (0) |
| #define SCB_ENABLE_CHECK 1 |
| #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_RET_FALSE_IF |
( |
expr, |
|
|
x, |
|
|
args... |
|
) |
if (expr) { SCB_ERROR(x, ##args); return FALSE; } |
| #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 SCB_RET_NULL_IF |
( |
expr, |
|
|
x, |
|
|
args... |
|
) |
if (expr) { SCB_ERROR(x, ##args); return NULL; } |
| #define SCB_TRACE |
( |
x, |
|
|
args... |
|
) |
do {} while (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) |