Lazarus

Free Pascal => Beginners => Topic started by: kinlion on December 07, 2018, 08:14:58 am

Title: [SOLVED]Are there some pre-defined variables such as __line__ like C languange ?
Post by: kinlion on December 07, 2018, 08:14:58 am
These variables are useful.
For examples:
  __build_time__ can be shown to indicate whethor the exe-file is the latest version. (The version number is not well-understood to none-programmer).
  __file__, __line__ can be used in debug out for convinent.
Title: Re: Are there some pre-defined variables such as __line__ like C languange ?
Post by: marcov on December 07, 2018, 08:31:51 am
Yes, they are documented in the manual: https://www.freepascal.org/docs-html/prog/progsu41.html

Afaik the next release will have some more. Those are not yet in the above list.
Title: Re: Are there some pre-defined variables such as __line__ like C languange ?
Post by: kinlion on December 07, 2018, 04:38:15 pm
Yes, they are documented in the manual: https://www.freepascal.org/docs-html/prog/progsu41.html

Afaik the next release will have some more. Those are not yet in the above list.

Thanks a lot. That's very useful.
TinyPortal © 2005-2018