X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkDD.h;h=c5a999629358e06be28d4f6232f047d8dc4f909c;hb=08f7de414957e92b25ca5b299007e941b610d3a8;hp=f43db9d005d9ef9d98f4b6ca4dc66bb5713b8b66;hpb=6194949c0beb1589904e22381b9aba1bbface172;p=clitk.git diff --git a/common/clitkDD.h b/common/clitkDD.h index f43db9d..c5a9996 100644 --- a/common/clitkDD.h +++ b/common/clitkDD.h @@ -19,16 +19,17 @@ #define clitkDD_h #include -#ifdef WIN32 +#ifdef _WIN32 # include #endif // David's debug -#ifdef WIN32 +#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(); @@ -37,6 +38,6 @@ template void _print_container(T const& a) { for(typename T::const_iterator i=a.begin();i!=a.end();++i) { std::cout << *i << " "; };} -#define DDS(a) { std::cout << #a " = [ "; _print_container(a) ; std::cout << " ]" << std::endl;std::cout.flush():} +#define DDS(a) { std::cout << #a " = [ "; _print_container(a) ; std::cout << " ]" << std::endl;std::cout.flush();} #endif