Return the character name of a scope flag
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | flag |
function FPM_SCOPE_NAME(flag) result(name) integer, intent(in) :: flag character(len=:), allocatable :: name select case (flag) case (FPM_SCOPE_UNKNOWN); name = "FPM_SCOPE_UNKNOWN" case (FPM_SCOPE_LIB); name = "FPM_SCOPE_LIB" case (FPM_SCOPE_DEP); name = "FPM_SCOPE_DEP" case (FPM_SCOPE_APP); name = "FPM_SCOPE_APP" case (FPM_SCOPE_TEST); name = "FPM_SCOPE_TEST" case (FPM_SCOPE_EXAMPLE); name = "FPM_SCOPE_EXAMPLE" case default; name = "INVALID" end select end function FPM_SCOPE_NAME