That should get you going, be sure to read the introduction.
In the past I've used this trick for many different purposes (for instance, writing driver code for a large variety of graphic cards with various memory lay-outs and port setups, greatly reducing the amount of code to maintain, for performance reasons you don't want that code to be too generic), but lately it has come into its own in a project that I'm working on where the large majority of the code is generated.
Unfortunately I can't share any code (it's written under contract).
jacquesm|13 years ago
That should get you going, be sure to read the introduction.
In the past I've used this trick for many different purposes (for instance, writing driver code for a large variety of graphic cards with various memory lay-outs and port setups, greatly reducing the amount of code to maintain, for performance reasons you don't want that code to be too generic), but lately it has come into its own in a project that I'm working on where the large majority of the code is generated.
Unfortunately I can't share any code (it's written under contract).