]> Creatis software - clitk.git/blobdiff - common/clitkDD.h
With ITKv5, change VectorResample and VectorCast Image Filter to Resample and Cast...
[clitk.git] / common / clitkDD.h
index f43db9d005d9ef9d98f4b6ca4dc66bb5713b8b66..c5a999629358e06be28d4f6232f047d8dc4f909c 100644 (file)
 #define clitkDD_h
 
 #include <iostream>
-#ifdef WIN32
+#ifdef _WIN32
 # include <windows.h>
 #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<class T>
     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