00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00030
00031
00032
00033
00034
00035
00036 #ifndef _ER_GTK_LOG_H_
00037 #define _ER_GTK_LOG_H_
00038
00039 #define LOGGING_ON 0
00040 #define WARNING_ON 1
00041 #define ERROR_ON 1
00042
00043 #if (LOGGING_ON)
00044 #define LOGPRINTF(x, args...) fprintf(stderr, "(LG_L)" __FILE__ ":%d,%s() " x "\n", __LINE__, __func__ , ##args)
00045 #else
00046 #define LOGPRINTF(x, args...) do {} while (0)
00047 #endif
00048
00049 #if (WARNING_ON)
00050 #define WARNPRINTF(x, args...) fprintf(stderr, "(LG_W)" __FILE__ ":%d,%s() " x "\n", __LINE__, __func__ , ##args)
00051 #else
00052 #define WARNPRINTF(x, args...) do {} while (0)
00053 #endif
00054
00055 #if (ERROR_ON)
00056 #define ERRORPRINTF(x, args...) fprintf(stderr, "(LG_E)" __FILE__ ":%d,%s() " x "\n", __LINE__, __func__ , ##args)
00057 #else
00058 #define ERRORPRINTF(x, args...) do {} while (0)
00059 #endif
00060
00061 #endif //_ER_GTK_LOG_H_