summaryrefslogtreecommitdiff
path: root/i3lock.h
diff options
context:
space:
mode:
Diffstat (limited to 'i3lock.h')
-rw-r--r--i3lock.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/i3lock.h b/i3lock.h
deleted file mode 100644
index 6cf7694..0000000
--- a/i3lock.h
+++ /dev/null
@@ -1,15 +0,0 @@
1#ifndef _I3LOCK_H
2#define _I3LOCK_H
3
4/* This macro will only print debug output when started with --debug.
5 * This is important because xautolock (for example) closes stdout/stderr by
6 * default, so just printing something to stdout will lead to the data ending
7 * up on the X11 socket (!). */
8#define DEBUG(fmt, ...) \
9 do { \
10 if (debug_mode) { \
11 fprintf(stderr, "[i3lock-extended-debug] " fmt, ##__VA_ARGS__); \
12 } \
13 } while (0)
14
15#endif