Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Generate Error for Undefined Symbol
                                             ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
 
  Syntax:   .ERRDEF name [,message]
 
            .ERRNDEF name [,message]
 
  See also: IFDEF, IFNDEF, .ERR, .ERRE, .ERRB, .ERRDIF
 
  Description:
 
     The .ERRDEF directive generates an A2056 error message if <name>
     is a previously defined symbol. The .ERRNDEF directive generates
     an A2055 error message if <name> has not been previously
     defined.
 
     One of the most common uses of the .ERRNDEF directive is to ensure
     that a symbol has been defined before you attempt to use it. This
     situation can occur if the source code depends on the command-line
     /D option or the Macro Assembler Global Options dialog box to
     define a symbol.
 
     If <message> is given, it will be displayed with the standard
     assembler error messages. The <message> parameter is any text item.
     See: ◄textitem►
                                    -♦-