patch_seq_env_push_string

Function patch_seq_env_push_string 

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

Push a String from the closure environment directly onto the stack

This combines getting and pushing in one operation to avoid returning SeqString by value through FFI, which has calling convention issues on Linux.

ยงSafety

  • Stack pointer must be valid
  • 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::String