When i first saw this syntax.. the ants starts to creep on my stomach as my lack of skill in pronounces, i could not find the right keyword to google that '##' syntax.. :(
when you see something like this on some c++ header file:
#define CF(className) create##ClassName(){}
this macro if applied for example..
CF(kittyClass);
That macro, by the compiler will be translated to
createKittyClass(){};
Yep, and that is all folks.. :)
Tidak ada komentar:
Posting Komentar