File: debug.h

package info (click to toggle)
epix 1.2.10-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 3,160 kB
  • sloc: cpp: 16,442; sh: 5,058; makefile: 198
file content (37 lines) | stat: -rw-r--r-- 685 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef EPIX_DEBUG
#define EPIX_DEBUG

#include <iostream>
#include <cstdlib>
#include <sstream>
#include <string>

#include "pairs.h"
#include "triples.h"

#include "errors.h"

namespace ePiX
{
  inline void debug_msg(const std::string& msg)
    {
      std::cerr << msg << std::endl;
    }

  inline void debug_print(const pair& arg, const std::string& msg="")
    {
      std::cerr << msg << " (" 
		<< arg.x1() << ", " 
		<< arg.x2() << ")" << std::endl;
    }

  inline void debug_print(const P& arg, const std::string& msg="")
    {
      std::cerr << msg << " (" 
		<< arg.x1() << ", " 
		<< arg.x2() << ", " 
		<< arg.x3() << ")" << std::endl;
    }

}
#endif /* EPIX_DEBUG */