Function stack_graphs::c::sg_path_arena_add_scope_stacks
source · [−]#[no_mangle]
pub extern "C" fn sg_path_arena_add_scope_stacks(
paths: *mut sg_path_arena,
count: usize,
scopes: *const sg_node_handle,
lengths: *const usize,
out: *mut sg_scope_stack
)Expand description
Adds new scope stacks to the path arena. count is the number of scope stacks you want to
create. The content of each scope stack comes from two 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.
You must also provide an out array, which must also have room for count elements. We will
fill this array in with the sg_scope_stack instances for each scope stack that is created.