Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Telix/SALT v3.15 & RS-232, Hayes - Norton Guide http://www.X-Hacker.org [<<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__

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson