You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
558 B

  1. #ifndef _I3LOCK_H
  2. #define _I3LOCK_H
  3. /* This macro will only print debug output when started with --debug.
  4. * This is important because xautolock (for example) closes stdout/stderr by
  5. * default, so just printing something to stdout will lead to the data ending
  6. * up on the X11 socket (!). */
  7. #define DEBUG(fmt, ...) \
  8. do { \
  9. if (debug_mode) \
  10. printf("[i3lock-debug] " fmt, ##__VA_ARGS__); \
  11. } while (0)
  12. #endif