summaryrefslogtreecommitdiff
path: root/include/i3lock.h
diff options
context:
space:
mode:
authorSimeon Simeonov2023-03-14 23:30:32 +0100
committerSimeon Simeonov2023-03-18 13:37:27 +0100
commit66bd7af3e59e509000b8a55a9429e7a8e133fd81 (patch)
tree9eca5fe6eb76bb639fde682131c654eef17212df /include/i3lock.h
parentffc15cad8238b101203147d4c9da64ee8e5a05b8 (diff)
Sync with upstream 2.14.1 and update the documentation2.2.14
Diffstat (limited to 'include/i3lock.h')
-rw-r--r--include/i3lock.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/i3lock.h b/include/i3lock.h
new file mode 100644
index 0000000..6cf7694
--- /dev/null
+++ b/include/i3lock.h
@@ -0,0 +1,15 @@
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