pub const OpcodeStep = fn (*OpcodeBuilder) void;
pub const test = struct { steps: []*OpcodeStep };
and then defining it:
.steps = &[_]OpcodeStep{
OpcodeBuilder.loadModrm,
},
and i get
expected type '[1]*fn (*system.def.OpcodeBuilder) void', found '[1]fn (*system.def.OpcodeBuilder) void' this seems like a pretty easy fix but im not really sure how to appease this issue. any help would be appreciated!