functionis_procedureelemental
elemental logical function is_procedure(kind)
True if kind is a subroutine or function.
Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
| kind | integer | in | one of the |
Result
| Name | Type | Attributes | Description |
|---|---|---|---|
| is_procedure | logical |
Called by
- close_interface
- generic_bodies
- in_category
- locate_sources
- object_word
- of_class
- page_outline
- procedure_badges
- prune
- read_attribute_statement
- read_common
- read_declaration
- reveal_bound_procedures
Source
Show the code
elemental logical function is_procedure(kind)
integer, intent(in) :: kind !! one of the `E_*` constants
is_procedure = kind == E_SUBROUTINE .or. kind == E_FUNCTION
end function is_procedure