Commit e17c4a497f
Changed files (1)
src
link
src/link/tapi.zig
@@ -127,6 +127,16 @@ pub const LibStub = struct {
break :blk out;
}
+ err: {
+ log.debug("trying to parse as []TbdV3", .{});
+ const inner = lib_stub.yaml.parse([]TbdV3) catch break :err;
+ var out = try lib_stub.yaml.arena.allocator.alloc(Tbd, inner.len);
+ for (inner) |doc, i| {
+ out[i] = .{ .v3 = doc };
+ }
+ break :blk out;
+ }
+
err: {
log.debug("trying to parse as TbdV3", .{});
const inner = lib_stub.yaml.parse(TbdV3) catch break :err;