Skip to content

Instantly share code, notes, and snippets.

@fengb

fengb/huh.zig Secret

Created January 28, 2020 15:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fengb/bab9a7bbfff5a11393ebcdc11c6f4e66 to your computer and use it in GitHub Desktop.
Save fengb/bab9a7bbfff5a11393ebcdc11c6f4e66 to your computer and use it in GitHub Desktop.
| "0"
| "1"
./src/op.zig:160:21: error: found compile log statement
@compileLog(s_info.fields[0].name);
^
./src/op.zig:161:21: error: found compile log statement
@compileLog(s_info.fields[1].name);
^
./src/op.zig:163:42: error: container 'struct:244:25' has no member called '0'
StackChange.from(@field(pop_type, "0")),
^
./src/op.zig:197:16: note: referenced here
var size = sparse.len;
.Struct => |s_info| blk: {
std.debug.assert(s_info.fields.len == 2);
std.debug.assert(s_info.fields.len == 2);
@compileLog(s_info.fields[0].name);
@compileLog(s_info.fields[1].name);
break :blk .{
StackChange.from(@field(pop_type, "0")),
StackChange.from(@field(pop_type, "1")),
};
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment