File: RdfindDebug.hh

package info (click to toggle)
rdfind 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 648 kB
  • sloc: cpp: 1,670; sh: 1,622; makefile: 32
file content (20 lines) | stat: -rw-r--r-- 731 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
   copyright 20016-2017 Paul Dreik (earlier Paul Sundvall)
   Distributed under GPL v 2.0 or later, at your option.
   See LICENSE for further details.
*/

#include "config.h"

// debug macros. pass  --enable-debug=yes to configure to enable it
#ifdef RDFIND_DEBUG
#include <iostream> // for std::cerr
#define RDDEBUG(args)                                                          \
  if (1) {                                                                     \
    std::cerr << __FILE__ << " " << __LINE__ << ":" << args;                   \
  }
#else
#define RDDEBUG(args)                                                          \
  if (0) {                                                                     \
  }
#endif