#[unsafe(no_mangle)]pub unsafe extern "C" fn patch_seq_env_get_quotation(
env_data: *const Value,
env_len: usize,
index: i32,
) -> i64Expand description
Get a Quotation impl_ function pointer from the closure environment
Returns i64 (the impl_ function pointer as usize) for LLVM IR. Returns the tailcc impl_ pointer for TCO when called from compiled code. Quotations are stateless, so only the function pointer is needed.
ยง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)
- The value at index must be Value::Quotation