Skip to content

Commit 41e5331

Browse files
committed
resinator: fix compile errors
1 parent d83c76e commit 41e5331

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/compiler/resinator/main.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ pub fn main() !void {
156156
try stdout.flush();
157157
}
158158

159-
preprocess.preprocess(&comp, &preprocessed_buf.writer, argv.items, maybe_dependencies_list) catch |err| switch (err) {
159+
preprocess.preprocess(&comp, &preprocessed_buf.writer, argv.items, maybe_dependencies) catch |err| switch (err) {
160160
error.GeneratedSourceError => {
161161
try error_handler.emitAroDiagnostics(allocator, "failed during preprocessor setup (this is always a bug)", &comp);
162162
std.process.exit(1);

lib/compiler/resinator/preprocess.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub fn preprocess(
3737
error.FatalError => return error.GeneratedSourceError,
3838
else => |e| return e,
3939
};
40-
const user_macros = comp.addSourceFromBuffer("<command line>", macro_buf.written()) catch |err| switch (err) {
40+
const user_macros = comp.addSourceFromBuffer("<command line>", macro_buf.items) catch |err| switch (err) {
4141
error.FatalError => return error.GeneratedSourceError,
4242
else => |e| return e,
4343
};

0 commit comments

Comments
 (0)