patch_seq_create_env

Function patch_seq_create_env 

Source
#[unsafe(no_mangle)]
pub extern "C" fn patch_seq_create_env(size: i32) -> *mut [Value]
Expand description

Create a closure environment (array of captured values)

Called from generated LLVM code to allocate space for captured values. Returns a raw pointer to a boxed slice that will be filled with values.

ยงSafety

  • Caller must populate the environment with env_set before using
  • Caller must eventually pass ownership to a Closure value (via make_closure)