patch_seq_peek_quotation_fn_ptr

Function patch_seq_peek_quotation_fn_ptr 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn patch_seq_peek_quotation_fn_ptr( stack: Stack, ) -> usize
Expand description

Get the impl_ function pointer from a quotation on top of stack

Used by the compiler for tail call optimization of call. Returns the tailcc impl_ pointer for musttail calls from compiled code. Caller must ensure the top value is a Quotation (use peek_is_quotation first).

Stack effect: ( quot – quot ) [non-consuming peek]

§Safety

  • Stack must not be null
  • Top of stack must be a Quotation (panics otherwise)