always provide default opaque{} external type implementations

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst
2024-06-02 12:19:33 -07:00
parent ac5ad34a95
commit cfaf58a4de
2 changed files with 3 additions and 3 deletions

View File

@@ -1031,7 +1031,7 @@ fn Renderer(comptime WriterType: type) type {
try self.writer.writeAll(default);
try self.writer.writeAll(";\n");
} else {
try self.writer.print("@compileError(\"Missing type definition of '{s}'\");\n", .{name});
try self.writer.print("opaque {{}};\n", .{});
}
}