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.

22 lines
433 B

  1. // ASSERT.h -- Support for assertions...
  2. #ifndef __ASSERT_H__
  3. #define __ASSERT_H__
  4. #ifdef _DEBUG
  5. void STDCALL RonM_AssertionFailure(PSZ pszFileName, int nLine);
  6. #define RonM_ASSERT(fTest) ((fTest) ? (void)0 : RonM_AssertionFailure(__FILE__, __LINE__))
  7. #define DEBUGDEF(D) D;
  8. #define DEBUGCODE(X) { X }
  9. #else
  10. #define RonM_ASSERT(fTest) ((void) 0)
  11. #define DEBUGDEF(D)
  12. #define DEBUGCODE(X)
  13. #endif
  14. #endif // __ASSERT_H__