patch_seq_env_get

Function patch_seq_env_get 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn patch_seq_env_get( env_data: *const Value, env_len: usize, index: i32, ) -> Value
Expand description

Get a value from the closure environment

Called from generated closure function code to access captured values. Takes environment as separate data pointer and length (since LLVM can’t handle fat pointers).

§Safety

  • env_data must be a valid pointer to an array of Values
  • env_len must match the actual array length
  • index must be in bounds [0, env_len)