mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-11-08 19:20:47 -05:00
Merge pull request #160 from chrboesch/typeinfo
patch because of a change in @typeInfo
This commit is contained in:
commit
95e793d484
3 changed files with 3 additions and 3 deletions
|
@ -100,7 +100,7 @@ pub fn main() void {
|
||||||
//
|
//
|
||||||
// pub const StructField = struct {
|
// pub const StructField = struct {
|
||||||
// name: []const u8,
|
// name: []const u8,
|
||||||
// field_type: type,
|
// type: type,
|
||||||
// default_value: anytype,
|
// default_value: anytype,
|
||||||
// is_comptime: bool,
|
// is_comptime: bool,
|
||||||
// alignment: comptime_int,
|
// alignment: comptime_int,
|
||||||
|
|
|
@ -41,7 +41,7 @@ pub fn main() void {
|
||||||
const fields = @typeInfo(Narcissus).Struct.fields;
|
const fields = @typeInfo(Narcissus).Struct.fields;
|
||||||
|
|
||||||
??? {
|
??? {
|
||||||
if (field.field_type != void) {
|
if (field.type != void) {
|
||||||
print(" {s}", .{field.name});
|
print(" {s}", .{field.name});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -96,7 +96,7 @@ fn printTuple(tuple: anytype) void {
|
||||||
//
|
//
|
||||||
// pub const StructField = struct {
|
// pub const StructField = struct {
|
||||||
// name: []const u8,
|
// name: []const u8,
|
||||||
// field_type: type,
|
// type: type,
|
||||||
// default_value: anytype,
|
// default_value: anytype,
|
||||||
// is_comptime: bool,
|
// is_comptime: bool,
|
||||||
// alignment: comptime_int,
|
// alignment: comptime_int,
|
||||||
|
|
Loading…
Reference in a new issue