get_default_features Subroutine

public subroutine get_default_features(collections, error)

Get default feature collections (debug and release)

Arguments

Type IntentOptional Attributes Name
type(feature_collection_t), intent(out), allocatable :: collections(:)

Feature collections array to populate (debug and release)

type(error_t), intent(out), allocatable :: error

Error handling


Source Code

    subroutine get_default_features(collections, error)
        
        !> Feature collections array to populate (debug and release)
        type(feature_collection_t), allocatable, intent(out) :: collections(:)
        
        !> Error handling
        type(error_t), allocatable, intent(out) :: error
        
        ! Allocate array for debug and release collections
        allocate(collections(2))
        
        ! Create debug and release collections
        collections(1) = default_debug_feature()
        collections(2) = default_release_feature()
        
    end subroutine get_default_features