IGRAPH_FINALLY_CLEAN

Function IGRAPH_FINALLY_CLEAN 

Source
pub unsafe extern "C" fn IGRAPH_FINALLY_CLEAN(num: c_int)
Expand description

\function IGRAPH_FINALLY_CLEAN \brief Signals clean deallocation of objects.

Removes the specified number of objects from the stack of temporarily allocated objects. It is typically called immediately after manually destroying the objects:

igraph_vector_t vector; igraph_vector_init(&vector, 10); IGRAPH_FINALLY(igraph_vector_destroy, &vector); // use vector igraph_vector_destroy(&vector); IGRAPH_FINALLY_CLEAN(1);

\param num The number of objects to remove from the bookkeeping stack.