# define LOG_TAG "E20"
#endif
-#ifdef E_LOGGING
+#ifdef E_DISABLE_LOGGING
+#undef DBG
+#undef INF
+#undef WRN
+#undef ERR
+#undef CRI
+#undef ELOG
+#undef ELOGF
+#define DBG(...) do { printf(__VA_ARGS__); putc('\n', stdout); } while(0)
+#define INF(...) do { printf(__VA_ARGS__); putc('\n', stdout); } while(0)
+#define WRN(...) do { printf(__VA_ARGS__); putc('\n', stdout); } while(0)
+#define ERR(...) do { printf(__VA_ARGS__); putc('\n', stdout); } while(0)
+#define CRI(...) do { printf(__VA_ARGS__); putc('\n', stdout); } while(0)
+#define ELOG(...) ;
+#define ELOGF(...) ;
+#define ICINF(f, x...) ;
+
+#undef PRCTL
+#undef PRCTL_BACKTRACE
+#undef DLOG_BACKTRACE
+#define PRCTL
+#define PRCTL_BACKTRACE
+#define DLOG_BACKTRACE
+#else
#undef DBG
#undef INF
#undef WRN
return e_pixmap_window_get(e_client_pixmap_get(ec));
}
-# if (E_LOGGING >= 2) /* new version */
-# define ELOG(t, ec) \
+#define ELOG(t, ec) \
do \
{ \
if (ec) \
} \
while (0)
-# define ELOGF(t, f, ec, x...) \
+#define ELOGF(t, f, ec, x...) \
do \
{ \
if (ec) \
} \
while (0)
-# define ELOGFD(t, f, ec, x...) \
+#define ELOGFD(t, f, ec, x...) \
do \
{ \
if (ec) \
} \
while (0)
-# define ELOGFE(t, f, ec, x...) \
+#define ELOGFE(t, f, ec, x...) \
do \
{ \
if (ec) \
ERR("%8.8s|||"f, (t), ##x); \
} \
while (0)
-# else /* old version */
-# define ELOG(t, cp, ec) \
- do \
- { \
- if (ec) \
- INF("%10.10s|w:0x%08zx|ec:%8p|", \
- (t), (e_log_client_util_win_get(ec)), (ec)); \
- else \
- INF("%10.10s| | |", \
- (t)); \
- } \
- while (0)
-
-# define ELOGF(t, f, cp, ec, x...) \
- do \
- { \
- if (ec) \
- INF("%10.10s|w:0x%08zx|ec:%8p|"f, \
- (t), (e_log_client_util_win_get(ec)), (ec), ##x); \
- else \
- INF("%10.10s| | |"f, \
- (t), ##x); \
- } \
- while (0)
-
-# define ELOGFD(t, f, cp, ec, x...) \
- do \
- { \
- if (ec) \
- DBG("%10.10s|w:0x%08zx|ec:%8p|"f, \
- (t), (e_log_client_util_win_get(ec)), (ec), ##x); \
- else \
- DBG("%10.10s| | |"f, \
- (t), ##x); \
- } \
- while (0)
-
-# define ELOGFE(t, f, cp, ec, x...) \
- do \
- { \
- if (ec) \
- ERR("%10.10s|w:0x%08zx|ec:%8p|"f, \
- (t), (e_log_client_util_win_get(ec)), (ec), ##x); \
- else \
- ERR("%10.10s| | |"f, \
- (t), ##x); \
- } \
- while (0)
-# endif /* end of if (E_LOGGING >= 2) */
-# define ICINF(f, x...) \
+#define ICINF(f, x...) \
do \
{ \
E_Comp_Config *comp_conf = e_comp_config_get(); \
} E_Log_Type;
extern E_API int e_log_dom;
-
-#else
-#undef DBG
-#undef INF
-#undef WRN
-#undef ERR
-#undef CRI
-#undef ELOG
-#undef ELOGF
-#define DBG(...) do { printf(__VA_ARGS__); putc('\n', stdout); } while(0)
-#define INF(...) do { printf(__VA_ARGS__); putc('\n', stdout); } while(0)
-#define WRN(...) do { printf(__VA_ARGS__); putc('\n', stdout); } while(0)
-#define ERR(...) do { printf(__VA_ARGS__); putc('\n', stdout); } while(0)
-#define CRI(...) do { printf(__VA_ARGS__); putc('\n', stdout); } while(0)
-#define ELOG(...) ;
-#define ELOGF(...) ;
-#define ICINF(f, x...) ;
-
-#undef PRCTL
-#undef PRCTL_BACKTRACE
-#undef DLOG_BACKTRACE
-#define PRCTL
-#define PRCTL_BACKTRACE
-#define DLOG_BACKTRACE
#endif
#if 0