Skip to main content

invoke_callable

Function invoke_callable 

Source
pub unsafe fn invoke_callable(stack: Stack, callable: &Value) -> Stack
Expand description

Invoke a quotation or closure with the given stack.

Shared helper used by combinators, list ops, and map ops. Handles both calling conventions (bare function pointer for Quotations, function pointer + environment for Closures).

ยงSafety

  • Stack must be valid
  • The callable must be a Quotation or Closure value