-
Notifications
You must be signed in to change notification settings - Fork 38
Keep literals for enum values #158
Copy link
Copy link
Closed
Labels
Description
Currently DStep translates the following code:
enum Foo
{
a = 0x1,
b = 0x2,
c = 1 << 0,
d = ((1 << 22) - 1)
};To:
extern (C):
enum Foo
{
a = 1,
b = 2,
c = 1,
d = 4194303
}It would be nice if the hexadecimal values from the original C code could be kept, like:
extern (C):
enum Foo
{
a = 0x1,
b = 0x2,
c = 1 << 0,
d = ((1 << 22) - 1)
}Reactions are currently unavailable