Variadic Functions in C with Ternery Operators Return Error with Unified Header Files #21751
Labels
bug
Observed behavior contradicts documented or intended behavior
translate-c
C to Zig source translation feature (@cImport)
Milestone
Zig Version
0.13.0
Steps to Reproduce and Observed Behavior
Minimal reproduction:
Build with
zig build-exe test.zig --library c -I.
Compiler error:
Expected Behavior
Interestingly, this issue doesn't happen when the header is separated from the functions themselves.
Build with
zig build-exe test.zig a.c --library c -I.
, no errorThe text was updated successfully, but these errors were encountered: