home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Interactive Guide / c-cplusplus-interactive-guide.iso / c_ref / csource5 / 357_01 / cstar1.exe / MACRO.PP < prev    next >
Encoding:
Text File  |  1991-11-15  |  321 b   |  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.