/*static char *SCCSID = "@(#)assert.h   6.1 90/11/18";*/
/*static char *SCCSID = "@(#)assert.h   13.4 90/02/16";*/

#if defined (LOGGING)
#define ASSERT
#define LOGASSERT
#endif

// @76193 only turn on ASSERT if it's defined
#if defined (ASSERT)

//@76193 - Add FILE and LINE info to all Asserts

void far AssertALS (PSZ psz, USHORT usLine, PALSEC pals);
void far AssertBuf (PSZ psz, USHORT usLine, PBUFNODE pbuf);
void far AssertDB (PSZ psz, USHORT usLine, PDIRBLK pdb);
void far AssertDE (PSZ psz, USHORT usLine, PDIRENT pde);
void far AssertDcp (PSZ psz, USHORT usLine, PDOUBLYCHAINEDPTRS pdcp);
void far AssertFN (PSZ psz, USHORT usLine, PVOID pfn);
void far AssertOFT (PSZ psz, USHORT usLine, POFT poft);
void far AssertSBD (PSZ psz, USHORT usLine, PSUBDIR psbd);
void far AssertSBDTree (PSZ psz, USHORT usLine, PSUBDIR psbd);
BOOL far fFindSBD (PSUBDIR psbd, PSUBDIR psbdNode);
void far AssertNoteRec (PSZ psz, USHORT usLine, PNOTEREC pnr);
void far AssertNotSBD (PSZ psz, USHORT usLine, PSUBDIR psbd);
#ifdef SIGIOH
void far AssertIOH (PSZ psz, USHORT usLine, PIOH pioh);
#endif


#define ASSERT_ALS(pals)        AssertALS (__FILE__, __LINE__, pals)
#define ASSERT_BUF(pbuf)        AssertBuf ( __FILE__, __LINE__, pbuf)
#define ASSERT_DB(pdb)          AssertDB ( __FILE__, __LINE__, pdb)
#define ASSERT_DE(pde)          AssertDE ( __FILE__, __LINE__, pde)
#define ASSERT_DCP(pdcp)        AssertDcp ( __FILE__, __LINE__, pdcp)
#define ASSERT_FN(pfn)          AssertFN ( __FILE__, __LINE__, pfn)
// not yet! #define ASSERT_OFT(poft)        AssertOFT (__FILE__, __LINE__, poft)
#define ASSERT_OFT(poft)
// not yet! #define ASSERT_SBD(psbd)        AssertSBD (__FILE__, __LINE__, psbd)
#define ASSERT_SBD(psbd)
#define ASSERT_ALB(palb)
#define ASSERT_SECPTR(pscp)
// not yet! #define ASSERT_NOTEREC(pnr)     AssertNoteRec (__FILE__, __LINE__, pnr)
#define ASSERT_NOTEREC(pnr)
// not yet! #define ASSERT_NOTSBD(psbd)     AssertNotSBD (__FILE__, __LINE__, psbd)
#define ASSERT_NOTSBD(psbd)
// not yet! #define ASSERT_SBDTREE(psbd)    AssertSBDTree (__FILE__, __LINE__, psbd)
#define ASSERT_SBDTREE(psbd)
#ifdef SIGIOH
#define ASSERT_IOH(pioh)        AssertIOH (__FILE__, __LINE__, pioh)
#else
#define ASSERT_IOH(pioh)
#endif

#else

#define ASSERT_ALS(pals)
#define ASSERT_BUF(pbuf)
#define ASSERT_DB(pdb)
#define ASSERT_DE(pde)
#define ASSERT_DCP(pdcp)
#define ASSERT_FN(pfn)
#define ASSERT_OFT(poft)
#define ASSERT_SBD(psbd)
#define ASSERT_ALB(palb)
#define ASSERT_SECPTR(pscp)
#define ASSERT_NOTEREC(pnr)
#define ASSERT_NOTSBD(psbd)
#define ASSERT_SBDTREE(psbd)
#define ASSERT_IOH(pioh)

#endif
