Advertisement
Guest User

Cristian

a guest
Dec 9th, 2010
131
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //-----------------------------------------------------------------------------------------
  2. #include <windows.h>
  3. #include <crtdbg.h>
  4. #define ASSERT(expression) _ASSERTE(expression)
  5.  
  6. int __stdcall WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
  7. {
  8.     int* p = 0;
  9.     ASSERT(p && "p should not be null");
  10. }
  11. //-----------------------------------------------------------------------------------------
  12. #include <windows.h> // needed for WinMain, otherwise the message will be in console
  13. #include <cassert>
  14.  
  15. int __stdcall WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
  16. {
  17.     int* p = 0;
  18.     assert(p && "p should not be null");
  19. }
  20. //-----------------------------------------------------------------------------------------
  21. #include <atlbase.h>
  22.  
  23. int __stdcall WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
  24. {
  25.     int* p = 0;
  26.     ATLASSERT(p && "p should not be null");
  27. }
  28. //-----------------------------------------------------------------------------------------
  29. #include <afx.h>
  30.  
  31. int __stdcall WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
  32. {
  33.     int* p = 0;
  34.     ASSERT(p && "p should not be null");
  35. }
  36. //-----------------------------------------------------------------------------------------
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement