Skip to main content

nemo_flow_scope_stack_create

Function nemo_flow_scope_stack_create 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn nemo_flow_scope_stack_create( out: *mut *mut FfiScopeStack, ) -> NemoFlowStatus
Expand description

Create a new isolated scope stack with its own root scope.

Each scope stack is independent: scopes pushed on one do not appear on another. Use nemo_flow_scope_stack_set_thread to bind a stack to the current thread before making other NeMo Flow API calls.

§Parameters

  • out: On success, receives a heap-allocated FfiScopeStack that must be freed with nemo_flow_scope_stack_free.

§Returns

§Safety

out must be a valid, non-null pointer.