home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / UNIX3862.ZIP / U386-06.ZIP / U386-6.TD0 / usr / include / sys / debug.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-06-26  |  652 b   |  28 lines

  1. /*    Copyright (c) 1984, 1986, 1987, 1988 AT&T    */
  2. /*      All Rights Reserved      */
  3.  
  4. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T    */
  5. /*    The copyright notice above does not evidence any       */
  6. /*    actual or intended publication of such source code.    */
  7.  
  8.  
  9. #ident    "@(#)head.sys:debug.h    1.3"
  10.  
  11. #define    YES 1
  12. #define    NO  0
  13.  
  14. #if DEBUG == YES
  15. #define ASSERT(EX) if (!(EX))assfail("EX", __FILE__, __LINE__)
  16. #define DB_ISKV(A) ((unsigned)(A) >= KVBASE && (unsigned)(A) < UVUBLK)
  17. #else
  18. #define ASSERT(x)
  19. #define DB_ISKV(A) 1
  20. #endif
  21.  
  22. #ifdef MONITOR
  23. #define MONITOR(id, w1, w2, w3, w4) monitor(id, w1, w2, w3, w4)
  24. #else
  25. #define MONITOR(id, w1, w2, w3, w4)
  26. #endif
  27.  
  28.