home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 357_01 / cstar1.exe / MACRO.PP < prev    next >
Text File  |  1991-11-15  |  321b  |  15 lines

  1. #define ZERO no args
  2. #define ONE(a) first actual arg is <a>
  3. #define TWO(a,b) first <a>, second <b>
  4. #define THREE(a,b,c) first <a>, second <b>, third <c>
  5.  
  6. ZERO;
  7.  
  8. ONE(arg1of1);
  9.  
  10. TWO(arg1, "arg 2 of 2 in a string");
  11.  
  12. THREE(1, "2", (3,of,3));
  13.  
  14. THREE(this is the first arg, and the second,  and the "last" '1');
  15.