update to Zig 2024.10-mach (helps hexops/mach#1276)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
26c5cb5d60
commit
c1dacf4df9
2 changed files with 4 additions and 4 deletions
|
|
@ -12,8 +12,8 @@
|
||||||
},
|
},
|
||||||
.dependencies = .{
|
.dependencies = .{
|
||||||
.mach_freetype = .{
|
.mach_freetype = .{
|
||||||
.url = "https://pkg.machengine.org/mach-freetype/288ab786fa21216e2420b9d8b42aec8cc17d1a2c.tar.gz",
|
.url = "https://pkg.machengine.org/mach-freetype/f4f1ba54f488a7181a26b80b655ce28680634e0d.tar.gz",
|
||||||
.hash = "12207fcf92e0ebf400ed9a4f4a3e31b3719bf829db933f2007dd398eb7568e5cc71a",
|
.hash = "1220cea9d54d0c785e085956adee05338699fb32bb93c678b451c0fe8b54acc46931",
|
||||||
.lazy = true,
|
.lazy = true,
|
||||||
},
|
},
|
||||||
.font_assets = .{
|
.font_assets = .{
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ fn ExpectFloat(comptime T: type) type {
|
||||||
|
|
||||||
fn ExpectVector(comptime T: type) type {
|
fn ExpectVector(comptime T: type) type {
|
||||||
const Elem = std.meta.Elem(T);
|
const Elem = std.meta.Elem(T);
|
||||||
const len = @typeInfo(T).Vector.len;
|
const len = @typeInfo(T).vector.len;
|
||||||
return struct {
|
return struct {
|
||||||
expected: T,
|
expected: T,
|
||||||
|
|
||||||
|
|
@ -115,7 +115,7 @@ fn Expect(comptime T: type) type {
|
||||||
if (T == type) return ExpectComptime(T);
|
if (T == type) return ExpectComptime(T);
|
||||||
if (T == f16 or T == f32 or T == f64) return ExpectFloat(T);
|
if (T == f16 or T == f32 or T == f64) return ExpectFloat(T);
|
||||||
if (T == []const u8) return ExpectBytes(T);
|
if (T == []const u8) return ExpectBytes(T);
|
||||||
if (@typeInfo(T) == .Vector) return ExpectVector(T);
|
if (@typeInfo(T) == .vector) return ExpectVector(T);
|
||||||
|
|
||||||
// Vector and matrix equality
|
// Vector and matrix equality
|
||||||
const is_vec2 = T == math.Vec2 or T == math.Vec2h or T == math.Vec2d;
|
const is_vec2 = T == math.Vec2 or T == math.Vec2h or T == math.Vec2d;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue