forked from i3/i3lock
-
-
Notifications
You must be signed in to change notification settings - Fork 136
/
i3lock.h
18 lines (15 loc) · 762 Bytes
/
i3lock.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef _I3LOCK_H
#define _I3LOCK_H
// boy i sure hope this doesnt change in the future
#define NANOSECONDS_IN_SECOND 1000000000
/* This macro will only print debug output when started with --debug.
* This is important because xautolock (for example) closes stdout/stderr by
* default, so just printing something to stdout will lead to the data ending
* up on the X11 socket (!). */
#define DEBUG(fmt, ...) \
do { \
if (debug_mode) { \
fprintf(stderr, "[i3lock-debug] " fmt, ##__VA_ARGS__); \
} \
} while (0)
#endif