home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 40 / IOPROG_40.ISO / SOFT / NETFrameworkSDK.exe / comsdk.cab / samples1.exe / Debugger / StdAfx.h < prev   
Encoding:
C/C++ Source or Header  |  2000-06-23  |  799 b   |  38 lines

  1. //*****************************************************************************
  2. // stdafx.h
  3. //
  4. // Common include file for utility code.
  5. //*****************************************************************************
  6. #include <windows.h>
  7. #include <crtdbg.h>
  8. #include <stdlib.h>
  9. #include <stdio.h>
  10. #include <stddef.h>
  11. #include <malloc.h>
  12.  
  13.  
  14. #include "DebuggerUtil.h"
  15. #include "dshell.h"
  16. #include "__file__.h"
  17.  
  18. #ifdef _DEBUG
  19.  
  20. #define RELEASE(iptr)               \
  21.     {                               \
  22.         _ASSERTE(iptr);             \
  23.         iptr->Release();            \
  24.         iptr = NULL;                \
  25.     }
  26.  
  27. #define VERIFY(stmt) _ASSERTE((stmt))
  28.  
  29. #else
  30.  
  31. #define RELEASE(iptr)               \
  32.     iptr->Release();
  33.  
  34. #define VERIFY(stmt) (stmt)
  35.  
  36. #endif
  37.  
  38.