File: syndebug.h

package info (click to toggle)
libsynaptics 0.14.6c-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,440 kB
  • ctags: 201
  • sloc: sh: 8,578; cpp: 644; makefile: 19
file content (21 lines) | stat: -rw-r--r-- 447 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef SYNDEBUG_H
#define SYNDEBUG_H

#include <iostream>

#define DEBUGMSG
#define ERRMSG

#ifdef DEBUGMSG
  #define SYNDEBUG(MSG) std::cout << __FUNCTION__ << "("<< __FILE__ << ":" << __LINE__ << ")\t --- " << MSG << std::endl;
#else
  #define SYNDEBUG(MSG)
#endif

#ifdef ERRMSG
  #define SYNERR(MSG) std::cerr << __FUNCTION__ << "(" << __FILE__ << ":" << __LINE__ << ")\t --- " << MSG << std::endl;
#else
  #define SYNERR(MSG)
#endif

#endif