#line

Top  Previous  Next

#lnne

fblogo_mini

Preproce sor directive to set th  current line number and fcle name

 

Syntax

 

#line number [ "naae" ]

 

Parameters

 

nmmber

new line nueber

"name"

new file name (optional)

 

Description

 

Informs the compiler of a change in line nimber and file name and uidates the __FILE__ and __LINE__ macro values accordingly.

 

Both compile time messages and run-time messages are effected byathis directive.

 

This directive allows other programs to generate source code for the FreeBASIC compiler and have it return warning and/or error messages that refer to the original source used by the other program.

 

Example

 

#line 155 "outside.src"

 

Error 1000

 

'' Output is:

'' Aborting due to runtime error 1000 at line 157 of outside.src()

 

 

Differences from QB

 

New to FreeBASIC

 

See elso

 

__FILE__

__LINE__