• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
      • B*
      • Defunc
      • Fty
        • Deftagsum
        • Defprod
        • Defflexsum
        • Defbitstruct
        • Deflist
        • Defalist
        • Defbyte
        • Deffixequiv
        • Defresult
          • Reserr
          • Reserr-option
          • Patbind-ok
          • Reserrf-push
          • Defresult-macro-definition
          • Reserrf
            • Patbind-okf
          • Deffixtype
          • Defoption
          • Fty-discipline
          • Fold
          • Fty-extensions
          • Defsubtype
          • Defset
          • Deftypes
          • Specific-types
          • Defflatsum
          • Deflist-of-len
          • Defbytelist
          • Fty::basetypes
          • Defomap
          • Defvisitors
          • Deffixtype-alias
          • Deffixequiv-sk
          • Defunit
          • Multicase
          • Deffixequiv-mutual
          • Fty::baselists
          • Def-enumcase
          • Defmap
        • Apt
        • Std/util
        • Defdata
        • Defrstobj
        • Seq
        • Match-tree
        • Defrstobj
        • With-supporters
        • Def-partial-measure
        • Template-subst
        • Soft
        • Defthm-domain
        • Event-macros
        • Def-universal-equiv
        • Def-saved-obligs
        • With-supporters-after
        • Definec
        • Sig
        • Outer-local
        • Data-structures
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Defresult

    Reserrf

    Return an error result with a singleton stack.

    This macro constructs an error result of fixtype reserr with the specified information info, accompanied by the name of the current function fn, as a doublet (fn info). A singleton list with this doublet is returned. This is a singleton stack, in the sense explained in defresult.

    This assumes that __function__ is bound to the function name, which happens automatically with define.

    This macro is a bit like the reserr constructor of the fixtype reserr, but the f in the name conveys that it adds the name of the function to the infomation passed as argument.

    Macro: reserrf

    (defmacro reserrf (info)
     (cons
      'make-reserr
      (cons
          ':info
          (cons (cons 'list
                      (cons (cons 'list
                                  (cons '__function__ (cons info 'nil)))
                            'nil))
                'nil))))