Leaked source code of windows server 2003
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.

29 lines
702 B

  1. //
  2. // cuidbg.cpp
  3. // = debug functions in CUILIB =
  4. //
  5. #include "private.h"
  6. #include "cuidebug.h"
  7. #if defined(_DEBUG) || defined(DEBUG)
  8. /* C U I A S S E R T P R O C */
  9. /*------------------------------------------------------------------------------
  10. ------------------------------------------------------------------------------*/
  11. void CUIAssertProc( LPCTSTR szFile, int iLine, LPCSTR szEval )
  12. {
  13. TCHAR szMsg[ 2048 ];
  14. wsprintf( szMsg, TEXT("%s(%d) : %s\n\r"), szFile, iLine, szEval );
  15. OutputDebugString( TEXT("***** CUILIB ASSERTION FAILED ******\n\r") );
  16. OutputDebugString( szMsg );
  17. OutputDebugString( TEXT("\n\r") );
  18. }
  19. #endif /* DEBUG */