/* Last edited on 2009-01-17 18:27:05 by stolfi */ #include /* This does not work, unfortunately: */ #define multidef(PREFIX,MIN,MAX) \ #define PREFIX##_MIN (MIN) \ #define PREFIX##_MAX (MAX) \ extern void PREFIX##_bOgUs /* To eat the semicolon. */ multidef(foo,111,999); int main(int argc, char **argv) { printf("MIN = %d MAX = %d\n", foo_MIN, foo_MAX); }