libs/fastflow/ff/graph_utils.hpp
// checks if node is a pipeline, if yes it returns the last stage 
checks if node is a pipeline, if yes it returns the last stage
checks if node is a pipeline if yes it returns the last stage
static inline ff_node* ispipe_getlast(ff_node* node) {
    if (node->isPipe()) {
        ff_pipeline* pipe = reinterpret_cast<ff_pipeline*>(node);
        return pipe->get_lastnode();
    }
    return nullptr;
}
static inline ff_node * ispipe_getlast ( ff_node * node ) { if ( node -> isPipe ( ) ) { ff_pipeline * pipe = reinterpret_cast < ff_pipeline * > ( node ) ; return pipe -> get_lastnode ( ) ; } return nullptr ; }
checks if node is a pipeline, if yes it returns the last stage
checks if node is a pipeline if yes it returns the last stage