digitalmars.D - htod simple macro translation
- Andrej Mitrovic <none none.none> Dec 27 2010
- Jacob Carlborg <doob me.com> Dec 27 2010
I have a C header with a whole bunch of simple macros like: #define PM_FILT_FD (1 << 0x0D) Unfortunately htod won't translate these (I've tried every flag documented). However, I vaguely remember Walter mentioning some kind of technique where one could use DMC to translate these(?). Or maybe I'm imagining things.. :) Otherwise I'll write a feature request, since these can be pretty common imo.
Dec 27 2010
On 2010-12-27 17:07, Andrej Mitrovic wrote:I have a C header with a whole bunch of simple macros like: #define PM_FILT_FD (1<< 0x0D) Unfortunately htod won't translate these (I've tried every flag documented). However, I vaguely remember Walter mentioning some kind of technique where one could use DMC to translate these(?). Or maybe I'm imagining things.. :) Otherwise I'll write a feature request, since these can be pretty common imo.
You can run the preprocessor and then run htod on the resulting file. dmc -c program.h -e -l http://www.digitalmars.com/d/2.0/htomodule.html -- /Jacob Carlborg
Dec 27 2010








Jacob Carlborg <doob me.com>