Mercurial > hg > CbC > old > device
view test/macro.c @ 111:7aa449aff3e6
floating point
author | kono |
---|---|
date | Wed, 19 Mar 2003 18:33:25 +0900 |
parents | 9f89cef85b41 |
children | ebac635814dc |
line wrap: on
line source
int heap[100]; #define car(e) (heap[(int)(e)]) #define cadr(e) (heap[((int)(e))+1]) #define TEST int i; TEST #define c(a,b) g(a+1,b+1) #define g(a,b) printf("%d %d\n",a+1,b+1); main() { int a,b,e; a =1; b = 3; #ifndef a c(a, b); /* 3,5 expected */ #endif e=50; heap[51]=3; heap[3]=4; /* 5,4 expected */ #if 0 g(car(cadr(e)),cadr(e)); #endif }