|
Revision 1, 0.7 KB
(checked in by root, 3 years ago)
|
|
Initial commit
|
| Line | |
|---|
| 1 | /* evilwm - Minimalist Window Manager for X |
|---|
| 2 | * Copyright (C) 1999-2006 Ciaran Anscomb <evilwm@6809.org.uk> |
|---|
| 3 | * see README for license and other details. */ |
|---|
| 4 | |
|---|
| 5 | #ifndef __LOG_H__ |
|---|
| 6 | #define __LOG_H__ |
|---|
| 7 | |
|---|
| 8 | #if defined(STDIO) || defined(DEBUG) || defined(XDEBUG) |
|---|
| 9 | # include <stdio.h> |
|---|
| 10 | #endif |
|---|
| 11 | |
|---|
| 12 | #ifdef STDIO |
|---|
| 13 | # define LOG_INFO(...) printf(__VA_ARGS__); |
|---|
| 14 | # define LOG_ERROR(...) fprintf(stderr, __VA_ARGS__); |
|---|
| 15 | #else |
|---|
| 16 | # define LOG_INFO(...) |
|---|
| 17 | # define LOG_ERROR(...) |
|---|
| 18 | #endif |
|---|
| 19 | |
|---|
| 20 | #ifdef DEBUG |
|---|
| 21 | # define LOG_DEBUG(...) fprintf(stderr, __VA_ARGS__); |
|---|
| 22 | #else |
|---|
| 23 | # define LOG_DEBUG(...) |
|---|
| 24 | #endif |
|---|
| 25 | |
|---|
| 26 | #ifdef XDEBUG |
|---|
| 27 | # define LOG_XDEBUG(...) fprintf(stderr, __VA_ARGS__); |
|---|
| 28 | #else |
|---|
| 29 | # define LOG_XDEBUG(...) |
|---|
| 30 | #endif |
|---|
| 31 | |
|---|
| 32 | #endif /* __LOG_H__ */ |
|---|