Closed creikey closed 4 years ago
Something that I don't really understand is why zig doesn't run the preprocessor before translating the C?
Zig does run the preprocessor before translating the C (well clang does), but doing so won't turn these macros into C expressions, it only expands them when they are used somewhere.
Full file in question: https://github.com/raysan5/raylib/blob/7ef114d1da2c34a70bba5442497103441647d8f3/src/raylib.h
Isolated snippet that reproduces the error ( from line 118 to 128 ):
Translate error of interest:
pub const LIGHTGRAY = @compileError("unable to translate C expr: unexpected token Id{ .LBrace = void }");