code_matches_integer Function

private function code_matches_integer(self, code)

Determines if a passed exit_code instance has the same code as the passed integer.

Type Bound

exit_code

Arguments

Type IntentOptional Attributes Name
class(exit_code), intent(in) :: self
integer, intent(in) :: code

Return Value logical


Contents

Source Code


Source Code

  logical function code_matches_integer(self, code)
    implicit none
    class(exit_code), intent(in) :: self
    integer, intent(in) :: code
    code_matches_integer = (self%code == code)
  end function code_matches_integer