def in.ext.pick

bend-osdev-acpi@0.1.1.0 · aml_interp.bend:1527

import bend-osdev-acpi@0.1.1.0/aml_interp.bend as AmlInterp
import Base
import bend-osdev-acpi@0.1.1.0/aml_value.bend as V
import bend-osdev-acpi@0.1.1.0/aml_ns.bend as S

1527def in.ext.pick(-H: Data, has: Bool, +p: String, +k: U32, c: AmlCur, fs: List<&2, AmlFrame>, +w: AmlWorld<H>) -> AmlMachine<H>:
1528  match has:
1529    case True{}:
1530      in.give(H, V.AmlUninit{}, c, fs, w)
1531    case False{}:
1532      in.give(H, V.AmlUninit{}, c, fs, in.define(H, w, p, S.AmlOExternal{k}))

Uses (12)

Used by (1)