Zig: cimport fails to escape characters correctly for zig

Created on 2 Jun 2019  路  3Comments  路  Source: ziglang/zig

e.g. I have a header file containing:

#define FOO "\001"

Trying to @cImport() this results in:

cimport.zig:177:24: error: newline not allowed in string literal
pub const FOO = c"\x1";
                       ^
bug contributor friendly

All 3 comments

This can be closed: fixed with PR #2615.

I can't reproduce this issue. That's why I changed my PR so it doesn't close it.

Fixed via #2615

Was this page helpful?
0 / 5 - 0 ratings