htod simple macro translation
Jacob Carlborg
doob at me.com
Mon Dec 27 12:05:35 PST 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
More information about the Digitalmars-d
mailing list