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.

30 lines
453 B

  1. //
  2. // cuidebug.h
  3. // = debug functions in CUILIB =
  4. //
  5. #ifndef CUIDEBUG_H
  6. #define CUIDEBUG_H
  7. #if defined(_DEBUG) || defined(DEBUG)
  8. //
  9. // debug version
  10. //
  11. void CUIAssertProc( LPCTSTR szFile, int iLine, LPCSTR szEval );
  12. #define Assert( f ) { if (!(BOOL)(f)) { CUIAssertProc( __FILE__, __LINE__, #f ); } }
  13. #else /* !DEBUG */
  14. //
  15. // release version
  16. //
  17. #define Assert( f )
  18. #endif /* !DEBUG */
  19. #endif /* CUIDEBUG_H */