Improve translate-c macro @compileError
s for pragma operators
#20405
Labels
error message
This issue points out an error message that is unhelpful and should be improved.
translate-c
C to Zig source translation feature (@cImport)
Milestone
Zig Version
0.14.0-dev.66+1fdf13a14
Steps to Reproduce and Observed Behavior
possibly related to #4754
create c file with:
Observed behavior:
zig translate-c src/test-translate.c
outputs:
Context: I am attempting to use zig to wrap and use https://github.com/OpenEtherCATsociety/SOEM
which uses this macro a lot to create packed structs like:
Expected Behavior
I would have expected zig to handle this macro and create packed structs.Someone more knowledgeable should define what should be expected with C packed structs (Zig packed structs are not the same as C packed structs)
The text was updated successfully, but these errors were encountered: