Windows NT 4.0 source code leak
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.

48 lines
436 B

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