home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / acad / c / postscri / stdmacro.h < prev   
Text File  |  1994-06-19  |  433b  |  11 lines

  1. /*--- stdmacro.h -------------------------------------------------*/
  2. #define _CountOf_(A) ((sizeof (A))/(sizeof (A[0])))
  3. #define _InRange_(Low, Value, High) ((((int)Low) <= ((int)Value)) && (((int)Val
  4. ue) < ((int)High)))
  5. #define _RangeCheck_(Low, Value, High) ((((int)Low) <= ((int)Value)) && (((int)
  6. Value) < ((int)High)))
  7. #define FALSE 0
  8. #define TRUE 1
  9. typedef char boolean;
  10. #define _Max_(A,B) (((A) > (B)) ? (A) : (B))
  11.