2 Copyright (C) 2005-2007, Net Direct Inc. (http://www.netdirect.ca/)
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 See the GNU General Public License in the COPYING file at the
14 root directory of this project for more details.
17 #include <iostream> // debugging only
21 extern bool __data_dump_mode__
;
24 // data dump output - controlled by command line -v switch
25 #define ddout(x) if(Barry::__data_dump_mode__) std::cout << x << std::endl
32 // low level debug output
33 #define dout(x) if(Barry::__data_dump_mode__) std::cout << x << std::endl
37 #define eout(x) std::cout << x << std::endl
39 // easy exception output
40 #define eeout(c, r) std::cout << "Sent packet:\n" << c << "\n" << "Response packet:\n" << r << "\n"
51 #define eout(x) std::cout << x << std::endl
52 #define eeout(c, r) std::cout << "Sent packet:\n" << c << "\n" << "Response packet:\n" << r << "\n"
54 // handle assert() as well