Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. #define str(s) # s
  2. #define xstr(s) str(s)
  3. #define debug(s, t) printf("x" # s "= %d, x" # t "= %s", \
  4.         x ## s, x ## t)
  5. #define INCFILE(n) vers ## n
  6. #define glue(a, b) a ## b
  7. #define xglue(a, b) glue(a, b)
  8. #define HIGHLOW "hello"
  9. #define LOW LOW ", world"
  10. debug(1, 2);
  11. fputs(str(strncmp("abc\0d", "abc", '\4') // this goes away
  12.         == 0) str(: @\n), s);
  13. \#include xstr(INCFILE(2).h)
  14. glue(HIGH, LOW);
  15. xglue(HIGH, LOW)
  16.