Open rilysh opened 1 year ago
Got tons of these errors, when including windows.h
A short overview:
Zig still lags behind proper C translation support. I'd recommend creating a new issue page instead of using this one. I reported this bug, last year in December and there are no updates on this. Since then I haven't really touched Zig.
Zig Version
0.11.0-dev.746+4832677c3
Steps to Reproduce and Observed Behavior
I was playing with Zig's inline ASM, however, I encountered with this error when trying to use
__cpuid_count
fromcpuid.h
Error:unable to translate macro: undefined identifier __asm
I know there's already
asm
keyword exists in Zig, and instead of usingcpuid.h
we can manually pass these with Zig's inline ASM, however,__asm
is a quite often occurrence macro in C, and manually reimplementation would be much harder and time-consuming.Expected Behavior
This error shouldn't happen, and Zig should be able to translate C's
__asm
.