Help for .h to D pain?

div0 div0 at sourceforge.net
Fri Nov 12 05:25:22 PST 2010


On 12/11/2010 13:21, div0 wrote:
> On 12/11/2010 04:01, jfd wrote:
>>
>> Help, anyone? Thank you.
>
> The easiest way is to simply compile a one liner C module.
> Then you get all the necessary stuff included and all the irritating
> macros stripped out and converted to what they are actually supposed to
> be. You can then probably run htod successfully; even if not it's much
> easier converting the code by hand.
>

Doh, I forgot the most important bit:
Use the keep preprocessed file option of your compiler.

for gcc I think it's -E; in visual studio it's one of the options on the 
Preprocessor properties page.

-- 
My enormous talent is exceeded only by my outrageous laziness.
http://www.ssTk.co.uk


More information about the Digitalmars-d mailing list