Mercurial > hg > CbC > old > device
comparison test/macro.c @ 180:f00e3bfa1b45
nkf.c compile (not correct)
author | kono |
---|---|
date | Sun, 30 Nov 2003 18:26:36 +0900 |
parents | 352feeae4b0a |
children | 1d80ad165831 |
comparison
equal
deleted
inserted
replaced
179:fde8cb5d9254 | 180:f00e3bfa1b45 |
---|---|
11 #define TEST0 33 | 11 #define TEST0 33 |
12 #define TEST111 TEST0 | 12 #define TEST111 TEST0 |
13 | 13 |
14 #define c(a,b) g(a+1,b+1) | 14 #define c(a,b) g(a+1,b+1) |
15 #define g(a,b) printf("%d %d\n",a+1,b+1); | 15 #define g(a,b) printf("%d %d\n",a+1,b+1); |
16 #define d(a,b) cadr(b)+3 | |
16 | 17 |
17 main() { | 18 main() { |
18 int a,b,e; | 19 int a,b,e; |
19 | 20 |
20 b = heap[TEST111]; | 21 b = heap[TEST111]; |
22 d(a,b); | |
21 a =1; b = 3; | 23 a =1; b = 3; |
22 #ifndef a | 24 #ifndef a |
23 c(a, | 25 c(a, |
24 b); | 26 b); |
25 /* 3,5 expected */ | 27 /* 3,5 expected */ |