Open
Description
Regarding this TODO:
Line 1669 in b42acec
Is there a big benefit to representing these values as non-exhaustive enums? My impression is that the common case is combining multiple bitmask values together which is awkward with the current setup. For example:
const std = @import("std");
const win32 = @import("win32").everything;
const class = std.mem.zeroInit(win32.WNDCLASSEXA, .{
.style = @intToEnum(win32.WNDCLASS_STYLES, @enumToInt(win32.CS_HREDRAW) | @enumToInt(win32.CS_VREDRAW) | @enumToInt(win32.CS_OWNDC)),
});
Metadata
Metadata
Assignees
Labels
No labels