scblog.h File Reference

#include <stdio.h>
#include <errno.h>
#include <string.h>
Include dependency graph for scblog.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define LOG_PREFIX   "SCB"
#define DUMP_ON   0
#define LOG_OPEN(X)   do {} while (0)
#define LOG_CLOSE()   do {} while (0)
#define LOGPRINTF(format, args...)   do {} while (0)
#define DUMPPRINTF(format, args...)   do {} while (0)
#define WARNPRINTF(format, args...)   fprintf(stderr, "(" LOG_PREFIX "_W)" __FILE__ ":%d,%s() " format "\n", __LINE__, __func__ , ##args)
#define ERRORPRINTF(format, args...)   fprintf(stderr, "(" LOG_PREFIX "_E)" __FILE__ ":%d,%s() --- " format "\n", __LINE__, __func__ , ##args)
#define ERRNOPRINTF(format, args...)   fprintf(stderr, "(" LOG_PREFIX "_E)" __FILE__ ":%d,%s() --- " format ", errno [%d] [%s]\n", __LINE__, __func__ , ##args, errno, strerror(errno))
#define ERSCRIBBLE_RET_FALSE_IF(expr, x, args...)   if (expr) { ERRORPRINTF(x, ##args); return FALSE; }
#define ERSCRIBBLE_RET_NULL_IF(expr, x, args...)   if (expr) { ERRORPRINTF(x, ##args); return NULL; }
#define ERSCRIBBLE_RET_IF(expr, x, args...)   if (expr) { ERRORPRINTF(x, ##args); return; }
#define ERSCRIBBLE_RET_INT_IF(expr, ret, x, args...)   if (expr) { ERRORPRINTF(x, ##args); return ret; }

Define Documentation

#define DUMP_ON   0

Definition at line 43 of file scblog.h.

#define DUMPPRINTF ( format,
args...   )     do {} while (0)
#define ERRNOPRINTF ( format,
args...   )     fprintf(stderr, "(" LOG_PREFIX "_E)" __FILE__ ":%d,%s() --- " format ", errno [%d] [%s]\n", __LINE__, __func__ , ##args, errno, strerror(errno))

Definition at line 102 of file scblog.h.

#define ERRORPRINTF ( format,
args...   )     fprintf(stderr, "(" LOG_PREFIX "_E)" __FILE__ ":%d,%s() --- " format "\n", __LINE__, __func__ , ##args)

Definition at line 101 of file scblog.h.

#define ERSCRIBBLE_RET_FALSE_IF ( expr,
x,
args...   )     if (expr) { ERRORPRINTF(x, ##args); return FALSE; }
#define ERSCRIBBLE_RET_IF ( expr,
x,
args...   )     if (expr) { ERRORPRINTF(x, ##args); return; }
#define ERSCRIBBLE_RET_INT_IF ( expr,
ret,
x,
args...   )     if (expr) { ERRORPRINTF(x, ##args); return ret; }
#define ERSCRIBBLE_RET_NULL_IF ( expr,
x,
args...   )     if (expr) { ERRORPRINTF(x, ##args); return NULL; }
 
#define LOG_CLOSE (  )     do {} while (0)

Definition at line 61 of file scblog.h.

#define LOG_OPEN (  )     do {} while (0)

Definition at line 60 of file scblog.h.

#define LOG_PREFIX   "SCB"

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

Definition at line 32 of file scblog.h.

#define LOGPRINTF ( format,
args...   )     do {} while (0)

Definition at line 71 of file scblog.h.

#define WARNPRINTF ( format,
args...   )     fprintf(stderr, "(" LOG_PREFIX "_W)" __FILE__ ":%d,%s() " format "\n", __LINE__, __func__ , ##args)

Definition at line 88 of file scblog.h.

Generated by  doxygen 1.6.2-20100208