mirror of https://github.com/tongzx/nt5src
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
44 lines
865 B
/*--------------------------------------------------------
|
|
|
|
dbsqlutl.h
|
|
|
|
Copyright (C) 1995 - 1996 Microsoft Corporation
|
|
All rights reserved.
|
|
|
|
Authors:
|
|
keithbi Keith Birney
|
|
|
|
History:
|
|
10-09-95 keithbi Created.
|
|
|
|
-------------------------------------------------------*/
|
|
|
|
#ifndef DBSQL_UTIL
|
|
#define DBSQL_UTIL
|
|
|
|
#if defined(DEBUG)
|
|
|
|
extern "C"
|
|
{
|
|
void AcctDBDprintf(long lReportingLevel, PCSTR pcsz, ...);
|
|
void AcctDBDebugSz(long lReportingLevel, PCSTR pcsz);
|
|
void DebugLogEvent(PCSTR szFile, DWORD dwLine, PCSTR szMsg);
|
|
}
|
|
|
|
#define AcctDBAssert(f) ( (f) ? 0 : DebugLogEvent(__FILE__, __LINE__, "!(" #f ")") )
|
|
|
|
#else
|
|
|
|
#define AcctDBDprintf //
|
|
#define AcctDBDebugSz(l, p) //
|
|
#define AcctDBAssert(f) //
|
|
|
|
#endif
|
|
|
|
#if defined(NO_DBSQL_PERF)
|
|
#define AcctDBPerf(s)
|
|
#else
|
|
#define AcctDBPerf(s) s
|
|
#endif
|
|
|
|
#endif // DBSQL_UTIL
|