fdoc

functionmerged_bodyprivate

integer function merged_body(site, id) result(body)

The body of separate module procedure id, if its page is that of both, or 0.

Arguments

NameTypeIntentAttributesDescription
sitetype(site_t)in

the site

idintegerin

the entity

Result

NameTypeAttributesDescription
bodyinteger

Calls

Called by

Source

Show the code
integer function merged_body(site, id) result(body)
    type(site_t), intent(in) :: site    !! the site
    integer, intent(in) :: id           !! the entity

    body = 0
    if (.not. is_separate_interface(site%p%list, id)) return
    if (page_entity(site%p%list, site%p%list%box(id)%e%implements) == id) body = site%p%list%box(id)%e%implements
end function merged_body