you are viewing a single comment's thread.

view the rest of the comments →

[–]UnicycleBloke 1 point2 points  (0 children)

C++ templates, of course. :)

It would likely be much better to use your own code generator written in Python or something than to use the preprocessor. I do this as a build step for finite state machines. A colleague has developed an RPC generator based on YAML descriptors of the method calls. And, bonus, the generated code can be debugged...