Next: , Up: Using the Assembler Preprocessor   [Contents][Index]


5.13.1 Changing Line Number and File Name

Use the ‘line’ directive of the assembler preprocessor to change current line number and, possibly, the logical name of a preprocessed source file tracked by the preprocessor with emitting a corresponding ‘line’ directive to preprocessed output for subsequent interpreting by the assembler. Additionally, the assembler preprocessor uses information changed by the ‘line’ directive when generating error and note messages.

The directive must be on a line of its own (after at least one whitespace character at the beginning of the line) and must have one of the following formats:

        line    line_number
        line    line_number, file_name

In the first case, the directive changes the logical number of the next line in a current source file to line_number. In the second case, the directive changes the logical number of the next line to line_number and the logical name of the current source file to file_name. The parameter file_name must be a (quoted) string literal.