I would like to do something like the following:
F_BEGIN F(f1) {some code} F(f2) {some code} ... F(fn) {some code} F_END
and have it gene
Boost is a C++ library, but it's Preprocessor module should still be good for use in C. It offers some surprisingly advanced data types and functionality for use in the preprocessor. You could check it out.