ImportC has improved macro support
Walter Bright
newshound2 at digitalmars.com
Sat Dec 9 06:41:52 UTC 2023
On 12/7/2023 9:17 PM, Ki Rill wrote:
> This is amazing!
All in a day's work!
> It should solve the disappearing of enum-like definitions in
> code. I encountered this in Raylib. It has colors defined as macros:
>
> ```c
> #define WHITE (Color){255, 255, 255, 255}
> ```
>
> I preprocessed the file and all color definitions were gone. I had to redefine
> them manually.
Give it a try, it should work now!
More information about the Digitalmars-d-announce
mailing list