home *** CD-ROM | disk | FTP | other *** search
/ Power Programming / powerprogramming1994.iso / progtool / editor / j414src.arc / ARGCOUNT.H < prev    next >
C/C++ Source or Header  |  1989-10-10  |  955b  |  20 lines

  1. /***************************************************************************
  2.  * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne.  JOVE *
  3.  * is provided to you without charge, and with no warranty.  You may give  *
  4.  * away copies of JOVE, including sources, provided that this notice is    *
  5.  * included in all the files.                                              *
  6.  ***************************************************************************/
  7.  
  8. /* macros for getting at and setting the current argument count */
  9.  
  10. extern int    arg_supplied_p,
  11.         arg_count;
  12.  
  13. #define arg_type()        arg_supplied_p
  14. #define arg_value()        arg_count
  15. #define set_is_an_arg(there_is)    { arg_supplied_p = (there_is); }
  16. #define set_arg_value(n)    { arg_supplied_p = YES; arg_count = (n); }
  17. #define negate_arg_value()    { arg_count = -arg_count; }
  18. #define clr_arg_value()        { arg_supplied_p = NO; arg_count = 1; }
  19. #define is_an_arg()        (arg_supplied_p != NO)
  20.