March 20, 2014

Fun with #define

At Open Source club today someone mentioned that he uses #define to substitute here_we_go for main.  And say_what for printf.  How brilliant!

So this is what your program could look like:

#define here_we_go main
#define say_what printf

void here_we_go(void) {
   say_what("%s\n", "pretty cool huh!);
}

How fun!