Newer
Older
ubixos / contrib / tcc / tests / tests2 / 12_hashdefine.c
@Christopher W. Olsen Christopher W. Olsen on 29 Jan 2020 225 bytes TinyCC
#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 :