Macro: Validate_Fmac

Module location: VersionControl.pkg line 49 (view source)

Validate fmac version against a passed minumum version, revision, build

  #IFDEF FMAC_VERSION
    #IF (FMAC_Version<!1)
      #ERROR DFERR_WRONG_REVISION FMAC Version Mismatch
    #ELSE
      #IF (FMAC_Version = !1)
        #IF (FMAC_Revision<!2)
          #ERROR DFERR_WRONG_REVISION FMAC Version Mismatch
        #ELSE
          #IF (FMAC_Revision = !2)
            #IF (FMAC_Build<!3)
              #ERROR DFERR_WRONG_REVISION FMAC Version Mismatch
            #ENDIF
          #ENDIF
        #ENDIF
      #ENDIF
    #ENDIF
  #ELSE  // if not defined, it is an old version
    #ERROR DFERR_WRONG_REVISION FMAC Version Mismatch
  #ENDIF