summaryrefslogtreecommitdiff
path: root/tests/tests2/12_hashdefine.c
blob: 5c521e02bcfc7d3b2585c1b7e1201e4bca91195c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>

#define FRED 12
#define BLOGGS(x) (12*(x))

int main()
{
   printf("%d\n", FRED);
   printf("%d, %d, %d\n", BLOGGS(1), BLOGGS(2), BLOGGS(3));

   return 0;
}

// vim: set expandtab ts=4 sw=3 sts=3 tw=80 :