Function stack_graphs::c::sg_partial_path_arena_add_partial_scope_stacks [−][src]
#[no_mangle] pub extern "C" fn sg_partial_path_arena_add_partial_scope_stacks(
partials: *mut sg_partial_path_arena,
count: usize,
scopes: *const sg_node_handle,
lengths: *const usize,
variables: *const sg_scope_stack_variable,
out: *mut sg_partial_scope_stack
)
Expand description
Adds new partial scope stacks to the partial path arena. count is the number of partial
scope stacks you want to create. The content of each partial scope stack comes from three
arrays. The lengths array must have count elements, and provides the number of scopes in
each scope stack. The scopes array contains the contents of each of these scope stacks in
one contiguous array. Its length must be the sum of all of the counts in the lengths array.
The variables array must have count elements, and provides the optional scope stack
variable for each partial scope stack.
You must also provide an out array, which must also have room for count elements. We will
fill this array in with the sg_partial_scope_stack instances for each partial scope stack
that is created.