Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
480 B

  1. // Copyright (c) 1995 Microsoft Corporation
  2. /*
  3. * Define the assert() macro for windows apps.
  4. *
  5. * The macro will only be expanded to a function call if DEBUG is
  6. * defined.
  7. *
  8. */
  9. #undef assert
  10. #ifndef DEBUG
  11. #define assert(exp) ((void)0)
  12. #else
  13. void FAR PASCAL WinAssert
  14. (
  15. LPSTR lpstrModule,
  16. LPSTR lpstrFile,
  17. DWORD dwLine
  18. );
  19. #define assert(exp) \
  20. ( (exp) ? (void) 0 : WinAssert(#exp, __FILE__, __LINE__) )
  21. #endif