DoxigAlpha

ret

Function parameters

Parameters

#
self:*WipFunction

Type definitions in this namespace

Types

#

Functions in this namespace

Functions

#

= 16

Values

#

Source

Implementation

#
pub fn ret(self: *WipFunction, val: Value) Allocator.Error!Instruction.Index {
    assert(val.typeOfWip(self) == self.function.typeOf(self.builder).functionReturn(self.builder));
    try self.ensureUnusedExtraCapacity(1, NoExtra, 0);
    return try self.addInst(null, .{ .tag = .ret, .data = @intFromEnum(val) });
}