emit correct c preprocessor macro in convertCInclude

This commit is contained in:
Techatrix 2022-08-25 16:25:47 +02:00
parent a18ec394f1
commit 127781962d

View File

@ -79,7 +79,7 @@ fn convertCIncludeInternal(allocator: std.mem.Allocator, tree: Ast, node: Ast.No
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;
}