home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / AutoPC / apcsdk10.exe / data1.cab / Emulation_Include_Files / dbgprint.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-05-13  |  1.0 KB  |  51 lines

  1. /*++
  2. THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  3. ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  4. THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  5. PARTICULAR PURPOSE.
  6. Copyright (c) 1995, 1996, 1997  Microsoft Corporation
  7.  
  8. Module Name:  
  9.  
  10. dbgprint.h
  11.  
  12. Abstract:
  13.  
  14. Debug Print macros used in the WCEDDK samples.
  15.  
  16. Notes: 
  17.  
  18.  
  19. --*/
  20.  
  21. #ifndef __DBGPRINT_H__
  22. #define __DBGPRINT_H__
  23.  
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27.  
  28. // For NT emulation, we include emulation header, and 
  29. // let the debug macro to use wprintf function.
  30. #ifdef _WIN32_WCE_EMULATION  
  31. #define DbgPrintfW NKDbgPrintfW
  32. #ifdef DEBUGMSG
  33. #undef DEBUGMSG
  34. #endif
  35. #endif // _WIN32_WCE_EMULATION
  36.  
  37. // Set debug macro.
  38. extern int DbgPrintfW(LPWSTR lpszFmt, ...);
  39. #ifdef DEBUG
  40. #define DEBUGMSG(cond,printf_exp) ((void)((cond)?(DbgPrintfW printf_exp),1:0))
  41. #else
  42. #define DEBUGMSG(cond,printf_exp) ((void)0)
  43. #endif // DEBUG
  44.  
  45. #ifdef __cplusplus
  46. }
  47. #endif
  48.  
  49. #endif //__DBGPRINT_H__
  50.  
  51.