I recently answered a very similar question with a quick hack which you might be able to massage into something useful.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: C macro pre processing
by roboticus
in thread C macro pre processing
by prassi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |