Skip to content

Replace stack_pop_N with stack_pop<N> #59

Description

@tcrypt25519
fn stack_pop<'ctx, const N: usize>(
    bctx: &BuildCtx<'ctx, '_>,
) -> Result<[Value<'ctx>; N], Error> {
    std::array::try_from_fn(|_| call_stack_pop(bctx))
}

Destructure like:

let [a, b, c] = stack_pop<'ctx, 3>(bctx);

Delete StackPopN types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions