www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - ImportC is now scanning the #defines

reply Walter Bright <newshound2 digitalmars.com> writes:
Well, after this PR is pulled!

https://github.com/dlang/dmd/pull/14151

It's working with cpp, cl, and sppn.

Of course, the only pattern it currently detects is the simplest:

     #define XYZ 1

becomes:

     enum XYZ = 1;
May 20 2022
next sibling parent bauss <jj_1337 live.dk> writes:
On Saturday, 21 May 2022 at 03:38:40 UTC, Walter Bright wrote:
 Well, after this PR is pulled!

 https://github.com/dlang/dmd/pull/14151

 It's working with cpp, cl, and sppn.

 Of course, the only pattern it currently detects is the 
 simplest:

     #define XYZ 1

 becomes:

     enum XYZ = 1;
Very nice, thank you Walter for all the work on importC.
May 21 2022
prev sibling parent Walter Bright <newshound2 digitalmars.com> writes:
It's been pulled now!

Now the major pieces of its functionality are all in place.

A big thanks to everyone who helped out with this, especially Iain!
May 24 2022