Merge pull request #605 from Techatrix/translate-c-patch-undef

emit correct c preprocessor macro in convertCInclude
This commit is contained in:
Lee Cannon 2022-08-25 17:33:38 +01:00 committed by GitHub
commit 8cf96fe27c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,7 @@ fn convertCIncludeInternal(
try writer.print("#define {s} {s}\n", .{ first, second });
}
} else if (std.mem.eql(u8, call_name, "@cUndef")) {
try writer.print("#undefine {s}\n", .{first});
try writer.print("#undef {s}\n", .{first});
} else {
return error.Unsupported;
}