jacob-carlborg / dstep

A tool for converting C and Objective-C headers to D modules
205 stars 37 forks source link

`--alias-enum-members=true` shouldn't affect global anonymous enums #285

Closed jacob-carlborg closed 1 year ago

jacob-carlborg commented 1 year ago

Example:

enum { Foo };

Running DStep on the above file using the following command: dstep foo.h --alias-enum-members=true, results in the following invalid D code:

enum
{
    Foo = 0
}

alias Foo = .Foo;