home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c185 / 2.ddi / OWLSRC.EXE / CSCAPE / SOURCE / OASSERT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1989-09-06  |  880 b   |  38 lines

  1. /*
  2.     oassert.h        11/29/88
  3.  
  4.     % owl_Assert() related ID's and definitions.
  5.  
  6.     OWL 1.1
  7.     Copyright (c) 1986, 1987, by Oakland Group, Inc.
  8.     ALL RIGHTS RESERVED.
  9.  
  10.     Revision History:
  11.     -----------------
  12. */
  13. /* -------------------------------------------------------------------------- */
  14.  
  15. #define C_OWL        0
  16. #define C_SCAPE        1
  17. #define C_CELL        2
  18. #define C_TROUT        3
  19. #define C_LP        4
  20. #define C_SPOT      5
  21. #define C_SICK      6
  22.  
  23. #define oak_Assert(cond, prod, err, num)    \
  24.     if (!(cond)) oak_Error(prod, err, num)
  25.  
  26. #define owl_Assert(cond, err)                \
  27.     oak_Assert(cond, C_OWL, err, 0)
  28.  
  29. #define cs_Assert(cond, err, num)            \
  30.     oak_Assert(cond, C_SCAPE, err, num)
  31.  
  32. #define cc_Assert(cond, err)                \
  33.     oak_Assert(cond, C_CELL, err, 0)
  34.  
  35. extern void oak_Error(_arg3(int prod, int err, int num));
  36. /* -------------------------------------------------------------------------- */
  37.  
  38.