File: debug.h

package info (click to toggle)
wbar 1.3.3%2Bdfsg2-1
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 224 kB
  • ctags: 201
  • sloc: cpp: 1,307; sh: 102; makefile: 70
file content (12 lines) | stat: -rw-r--r-- 297 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef _DEBUG_H_
#define _DEBUG_H_

#include <iostream>

#define DEBUG(x) \
    (std::cout << __FILE__ << " line " << __LINE__ << \
     " (" << __FUNCTION__ << "); Var: " << #x << " Val = " << x << std::endl << std::endl)

#define ERRMSG(x) (std::cout << x << std::endl)

#endif /* _DEBUG_H_ */