libergtk/include/ergtklog.h File Reference

libergtk - ereader gtk library More...

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

Go to the source code of this file.

Defines

#define LOGGING_ON   0
#define WARNING_ON   1
#define ERROR_ON   1
#define LOGPRINTF(x, args...)   do {} while (0)
#define WARNPRINTF(x, args...)   fprintf(stderr, "(LG_W)" __FILE__ ":%d,%s() " x "\n", __LINE__, __func__ , ##args)
#define ERRORPRINTF(x, args...)   fprintf(stderr, "(LG_E)" __FILE__ ":%d,%s() " x "\n", __LINE__, __func__ , ##args)


Detailed Description

libergtk - ereader gtk library

The value of ERREGLOG_X_ON (with X one of LOGGING, WARNING or ERROR) determines whether a message will be printed. The value as defined in this file can be overruled by defining them before the inclusion of this file.

This file is best included in c files only.

Definition in file ergtklog.h.


Define Documentation

#define ERROR_ON   1

Definition at line 41 of file ergtklog.h.

#define ERRORPRINTF ( x,
args...   )     fprintf(stderr, "(LG_E)" __FILE__ ":%d,%s() " x "\n", __LINE__, __func__ , ##args)

Definition at line 56 of file ergtklog.h.

#define LOGGING_ON   0

Definition at line 39 of file ergtklog.h.

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

Definition at line 46 of file ergtklog.h.

#define WARNING_ON   1

Definition at line 40 of file ergtklog.h.

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

Definition at line 50 of file ergtklog.h.


Generated on Sun Dec 14 17:12:33 2008 by  doxygen 1.5.6