chore: upgrade to zig v0.15.1
This commit is contained in:
18
src/lib.zig
18
src/lib.zig
@@ -92,9 +92,9 @@ pub const Bus = struct {
|
||||
const P = @TypeOf(obj);
|
||||
const info = @typeInfo(P);
|
||||
|
||||
std.debug.assert(info == .Pointer); // `anytype` is a Pointer
|
||||
std.debug.assert(info.Pointer.size == .One); // Single-Item Pointer
|
||||
std.debug.assert(@typeInfo(info.Pointer.child) == .Struct); // Pointer Child is a `struct`
|
||||
std.debug.assert(info == .pointer); // `anytype` is a Pointer
|
||||
std.debug.assert(info.pointer.size == .one); // Single-Item Pointer
|
||||
std.debug.assert(@typeInfo(info.pointer.child) == .@"struct"); // Pointer Child is a `struct`
|
||||
|
||||
const impl = struct {
|
||||
fn read8(ptr: *anyopaque, address: u32) u8 {
|
||||
@@ -272,9 +272,9 @@ pub const Coprocessor = struct {
|
||||
const P = @TypeOf(obj);
|
||||
const info = @typeInfo(P);
|
||||
|
||||
std.debug.assert(info == .Pointer); // `anytype` is a Pointer
|
||||
std.debug.assert(info.Pointer.size == .One); // Single-Item Pointer
|
||||
std.debug.assert(@typeInfo(info.Pointer.child) == .Struct); // Pointer Child is a `struct`
|
||||
std.debug.assert(info == .pointer); // `anytype` is a Pointer
|
||||
std.debug.assert(info.pointer.size == .one); // Single-Item Pointer
|
||||
std.debug.assert(@typeInfo(info.pointer.child) == .@"struct"); // Pointer Child is a `struct`
|
||||
|
||||
const impl = struct {
|
||||
fn read(ptr: *anyopaque, op1: u3, cn: u4, cm: u4, op2: u3) u32 {
|
||||
@@ -351,9 +351,9 @@ pub const Scheduler = struct {
|
||||
const P = @TypeOf(obj);
|
||||
const info = @typeInfo(P);
|
||||
|
||||
std.debug.assert(info == .Pointer); // `anytype` is a Pointer
|
||||
std.debug.assert(info.Pointer.size == .One); // Single-Item Pointer
|
||||
std.debug.assert(@typeInfo(info.Pointer.child) == .Struct); // Pointer Child is a `struct`
|
||||
std.debug.assert(info == .pointer); // `anytype` is a Pointer
|
||||
std.debug.assert(info.pointer.size == .one); // Single-Item Pointer
|
||||
std.debug.assert(@typeInfo(info.pointer.child) == .@"struct"); // Pointer Child is a `struct`
|
||||
|
||||
const impl = struct {
|
||||
fn now(ptr: *anyopaque) u64 {
|
||||
|
||||
Reference in New Issue
Block a user