mirror of
https://github.com/ziglang/zig.git
synced 2026-02-20 00:08:56 +00:00
add std.meta.Vector to replace @Vector
This commit is contained in:
parent
249938dde0
commit
ee5b358d71
@ -650,3 +650,12 @@ pub fn IntType(comptime is_signed: bool, comptime bit_count: u16) type {
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
pub fn Vector(comptime len: u32, comptime child: type) type {
|
||||
return @Type(TypeInfo{
|
||||
.Vector = .{
|
||||
.len = len,
|
||||
.child = child,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user