pub fn writeCall(writer: *Writer, comptime T: type, offset: T) !void writer: *WriterT: typeoffset: T954
955
956
957
958
959
960
961
962
963 pub fn writeCall(writer: *Writer, comptime T: type, offset: T) !void {
if (options.call_frame_context) return error.InvalidCFAOpcode;
switch (T) {
u16 => try writer.writeByte(OP.call2),
u32 => try writer.writeByte(OP.call4),
else => @compileError("Call operand must be a 2 or 4 byte offset"),
}
try writer.writeInt(T, offset, options.endian);
}