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.

18 lines
539 B

  1. /****************************Module*Header***********************************\
  2. * Module Name: WASSERT
  3. *
  4. * Module Descripton: Quick Win32 assert code.
  5. *
  6. * Warnings:
  7. *
  8. * Created: 15 July 1993
  9. *
  10. * Author: Raymond E. Endres [rayen@microsoft.com]
  11. \****************************************************************************/
  12. #ifndef _DEBUG
  13. #define ASSERT(exp) ((void)0)
  14. #else
  15. void vAssert(TCHAR * pszExp, TCHAR * pszFile, int iLine);
  16. #define ASSERT(exp) (void)( (exp) || (vAssert(TEXT(#exp), TEXT(__FILE__), __LINE__), 0) )
  17. #endif