home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 342b.lha / cpp / test.c < prev   
Text File  |  1990-01-26  |  328b  |  16 lines

  1. #define cat(x, y)   x ## y
  2. #define var123        Werkt!!!
  3. cat(var, 123);
  4. cat(cat(1, 2), 3);
  5. #define cat2(x, y)  x/**/y
  6. cat2(var, 123);
  7. cat2(cat2(1, 2), 3);
  8. #define str(arg)    #arg
  9. str("Hallo");
  10. str(Ha"l"lo);
  11. #define instr(x)    "x y" "x"
  12. instr(Dit is de tweede string)
  13. #define spaces        a    b    c \
  14.         nexy line
  15. #define zeroargs()
  16.