diff options
Diffstat (limited to 'graphics/epix/debug.h')
-rw-r--r-- | graphics/epix/debug.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/graphics/epix/debug.h b/graphics/epix/debug.h new file mode 100644 index 0000000000..204063447a --- /dev/null +++ b/graphics/epix/debug.h @@ -0,0 +1,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 */ |