[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 In  an attempt  to help  users debugging  SALT scripts,  4  predefined
 'macros' or variables have been set up in CS, the script compiler. The
 word __LINE__  will be  replaced in  the compiled script by an integer
 constant representing  the current line number in the script. __FILE__
 will be  replaced by  a string  constant holding the current filename.
 __DATE__ and __TIME__ will be replaced by string constants of the cur-
 rent date and time. So for example, a script could have the sequence:.




         printsc ( "This is file " );
         printsc ( __FILE__ );
         prints ( " and line number " );
         printn ( __LINE__ );

 which if compiling TEST.SLT would print something like:

         This is file TEST.SLT and line number xx

  where 'xx'  is the  line number  that __LINE__ occurred on. Note that
 these macros  get replaced  by whatever  they represent right as CS is
 compiling the script file, Telix itself knows nothing about them.

See Also: __DATE__ __FILE__ __LINE__ __TIME__
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson