File: pptest3.c

package info (click to toggle)
cc65 2.19-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 20,268 kB
  • sloc: ansic: 117,151; asm: 66,339; pascal: 4,248; makefile: 1,009; perl: 607
file content (16 lines) | stat: -rw-r--r-- 497 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#define str(s)          # s
#define xstr(s)         str(s)
#define debug(s, t)     printf("x" # s "= %d, x" # t "= %s", \
                               x ## s, x ## t)
#define INCFILE(n)      vers ## n       // Comment
#define glue(a,b)       a ## b
#define xglue(a,b)      glue(a,b)
#define HIGHLOW         "hello"
#define LOW             LOW ", world"

debug (1, 2);
fputs (str (strncmp("abc\0d", "abc", '\4') // Comment
            == 0) str (: @\n), s);
glue (HIGH, LOW);
xglue (HIGH, LOW);