functionneeds_fypp
logical function needs_fypp(s, path)
True if path goes through Fypp, which is Python, so that fdoc_fypp takes its place.
Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
| s | type(settings_t) | in | the settings | |
| path | character(len=*) | in | the file |
Result
| Name | Type | Attributes | Description |
|---|---|---|---|
| needs_fypp | logical |
Calls
Source
Show the code
logical function needs_fypp(s, path)
type(settings_t), intent(in) :: s !! the settings
character(len=*), intent(in) :: path !! the file
needs_fypp = s%preprocess .and. starts_word(s%preprocessor, 'fypp') .and. &
contains_string(s%fpp_extensions, extension_of(path))
end function needs_fypp