December 27, 2010 htod simple macro translation | ||||
---|---|---|---|---|
| ||||
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. |
December 27, 2010 Re: htod simple macro translation | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | 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 |
Copyright © 1999-2021 by the D Language Foundation