AMSDST
debug.h
Go to the documentation of this file.
1 #ifndef debug_h
2 #define debug_h
3 
4 #ifdef PDEBUG
5 #define PRINTDEBUG printf("%s) This is the line number %d\n", __FILE__, __LINE__);
6 #else
7 #define PRINTDEBUG
8 #endif
9 
21 void ShowError( int level, char const* location, char const* fmt, ... );
22 
23 /* try to simulate copy_n in C++11 */
24 #include <algorithm>
25 
26 template<typename A, typename B>
27 A copy_n(A from, size_t n, B to){ return std::copy(from, from+n, to); }
28 
29 
30 #endif