Function arg [src]

Prototype

pub fn arg(self: *const WipFunction, index: u32) Value

Parameters

self: *const WipFunctionindex: u32

Source

pub fn arg(self: *const WipFunction, index: u32) Value { const argument = self.instructions.get(index); assert(argument.tag == .arg); assert(argument.data == index); const argument_index: Instruction.Index = @enumFromInt(index); return argument_index.toValue(); }