summaryrefslogtreecommitdiff
path: root/graphics/epix/debug.h
blob: 204063447aacf35146d694a090aad5fdce87e132 (plain)
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 */