00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef HxDebug_h
00012 #define HxDebug_h
00013
00014 #include "HxIo.h"
00015 #include <iomanip>
00016
00017 #define enter(f) STD_COUT << "Entering " << #f << "()" << STD_ENDL
00018 #define leave(f) STD_COUT << "Leaving " << #f << "()" << STD_ENDL
00019 #define doit(c) STD_COUT << '"' << __FILE__ << '"' << ", line " << __LINE__ \
00020 << " $ " << #c << ";" << STD_ENDL << flush; c
00021 #define show(v) STD_COUT << '"' << __FILE__ << '"' << ", line " << __LINE__ \
00022 << ": " << #v << " = " << flush << (v) << STD_ENDL
00023 #define errshow(v) STD_CERR << '"' << __FILE__ << '"' << ", line " << __LINE__ \
00024 << ": " << #v << " = " << flush << (v) << STD_ENDL
00025 #define here STD_COUT << '"' << __FILE__ << '"' << ", line " << __LINE__ << STD_ENDL
00026
00027 #endif