X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkDD.h;h=c21bb815acbc080e97f3adfd9b844c934209292e;hb=efba8919f9e2fb300f82d5bd2cafe70a0f7cffd1;hp=c5b52951b4851c48260fdcea17425df7549c8fbc;hpb=573d80d0f7a17607d2ee883c21c940c0ba020282;p=clitk.git diff --git a/common/clitkDD.h b/common/clitkDD.h index c5b5295..c21bb81 100644 --- a/common/clitkDD.h +++ b/common/clitkDD.h @@ -19,10 +19,21 @@ #define clitkDD_h #include - +#ifdef WIN32 +# include +#endif // David's debug -#define DD(a) std::cout << #a " = [ " << a << " ]" << std::endl;std::cout.flush(); +#ifdef WIN32 +# define DD(a) { \ + std::ostringstream ossDD; \ + ossDD << #a " = [ " << a << " ]" << std::endl; \ + OutputDebugString(ossDD.str().c_str()); \ + std::cout << ossDD.str() << std::endl; \ + } +#else +# define DD(a) std::cout << #a " = [ " << a << " ]" << std::endl;std::cout.flush(); +#endif #define DDV(a,n) { std::cout << #a " = [ "; for(unsigned int _i_=0; _i_ void _print_container(T const& a)