assert_subroutine_s Submodule


Uses

  • module~~assert_subroutine_s~~UsesGraph module~assert_subroutine_s assert_subroutine_s module~assert_subroutine_m assert_subroutine_m module~assert_subroutine_s->module~assert_subroutine_m

Contents


Module Procedures

module procedure assert pure module module subroutine assert(assertion, description, diagnostic_data)

Arguments

TypeIntentOptionalAttributesName
logical, intent(in) :: assertion

Most assertions will be expressions such as i>0

character(len=*), intent(in) :: description

A brief statement of what is being asserted such as "i>0" or "positive i"

class(*), intent(in), optional :: diagnostic_data

Data to include in an error ouptput: may be of an intrinsic type or a type that extends characterizable_t