src/fclaw2d_map.c
/* This function is expected to be called from C or C++. */
This function is expected to be called from C or C++.
This function is expected to be called from C or C ++ .
void
fclaw2d_map_destroy (fclaw2d_map_context_t * cont)
{
    if (cont->brick != NULL)
    {
        fclaw2d_map_destroy(cont->brick);  
    }
    if (cont->destroy == NULL)
    {
        FCLAW_FREE (cont);
    }
    else
    {
        cont->destroy (cont);
    }
}
void fclaw2d_map_destroy ( fclaw2d_map_context_t * cont ) { if ( cont -> brick != NULL ) { fclaw2d_map_destroy ( cont -> brick ) ; } if ( cont -> destroy == NULL ) { FCLAW_FREE ( cont ) ; } else { cont -> destroy ( cont ) ; } }
This function is expected to be called from C or C++.
This function is expected to be called from C or C ++ .
/* recursive call */