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.

44 lines
865 B

  1. /*--------------------------------------------------------
  2. dbsqlutl.h
  3. Copyright (C) 1995 - 1996 Microsoft Corporation
  4. All rights reserved.
  5. Authors:
  6. keithbi Keith Birney
  7. History:
  8. 10-09-95 keithbi Created.
  9. -------------------------------------------------------*/
  10. #ifndef DBSQL_UTIL
  11. #define DBSQL_UTIL
  12. #if defined(DEBUG)
  13. extern "C"
  14. {
  15. void AcctDBDprintf(long lReportingLevel, PCSTR pcsz, ...);
  16. void AcctDBDebugSz(long lReportingLevel, PCSTR pcsz);
  17. void DebugLogEvent(PCSTR szFile, DWORD dwLine, PCSTR szMsg);
  18. }
  19. #define AcctDBAssert(f) ( (f) ? 0 : DebugLogEvent(__FILE__, __LINE__, "!(" #f ")") )
  20. #else
  21. #define AcctDBDprintf //
  22. #define AcctDBDebugSz(l, p) //
  23. #define AcctDBAssert(f) //
  24. #endif
  25. #if defined(NO_DBSQL_PERF)
  26. #define AcctDBPerf(s)
  27. #else
  28. #define AcctDBPerf(s) s
  29. #endif
  30. #endif // DBSQL_UTIL