include/win32/applicfg.h
changeset 407 384c3cd7afa2
parent 396 a43910975547
child 637 c676669ec3c1
equal deleted inserted replaced
406:92e28415d026 407:384c3cd7afa2
    99   do{wchar_t msg[300];\
    99   do{wchar_t msg[300];\
   100    swprintf(msg,L##__VA_ARGS__);\
   100    swprintf(msg,L##__VA_ARGS__);\
   101    OutputDebugString(msg);}while(0)
   101    OutputDebugString(msg);}while(0)
   102 #else
   102 #else
   103 #define MSG(...) \
   103 #define MSG(...) \
   104   do{char msg[300];\
   104   do{printf(__VA_ARGS__);fflush(stdout);}while(0)
       
   105 
       
   106 /*do{char msg[300];\
   105    sprintf(msg,##__VA_ARGS__);\
   107    sprintf(msg,##__VA_ARGS__);\
   106    OutputDebugString(msg);}while(0)
   108    OutputDebugString(msg);}while(0)
       
   109 */
   107 #endif  
   110 #endif  
   108 #define CANFESTIVAL_DEBUG_MSG(num, str, val)\
   111 #define CANFESTIVAL_DEBUG_MSG(num, str, val)\
   109   {unsigned long value = val;\
   112   {unsigned long value = val;\
   110    MSG("%s(%d) : 0x%X %s 0x%X\n",__FILE__, __LINE__,num, str, value);\
   113    MSG("%s(%d) : 0x%X %s 0x%X\n",__FILE__, __LINE__,num, str, value);\
   111    }
   114    }