$VERSION
Aus MCS Wiki AVR
(Unterschied zwischen Versionen)
Admin (Diskussion | Beiträge) (Created page with "= <span class="f_Header">Action</span> = This compiler directive stores version information. <span style="font-family: Arial;"> </span> <span style="font-family: Arial...") |
Admin (Diskussion | Beiträge) |
||
Zeile 24: | Zeile 24: | ||
You can use Version(2) to print this information. $version 1,2,3 will be printed as 1.2.3 | You can use Version(2) to print this information. $version 1,2,3 will be printed as 1.2.3 | ||
+ | |||
+ | |||
+ | |||
+ | The compiler will create three internal constants named _VERSION_MAJOR, _VERSION_MINOR and _VERSION_BUILD with the specified values. | ||
+ | |||
+ | For example when $version is set to : $VERSION 1,2,3 | ||
+ | |||
+ | _VERSION_MAJOR will become 1 , _VERSION_MINOR will become 2 and _VERSION_BUILD will become 3. | ||
<span style="font-family: Arial;"> </span> | <span style="font-family: Arial;"> </span> |
Aktuelle Version vom 24. August 2013, 12:42 Uhr
Inhaltsverzeichnis |
Action
This compiler directive stores version information.
Syntax
$VERSION V,S,R
Remarks
Version info is important information. If you need to maintain source code, it will make it easy to identify the code.
$VERSION has 3 parameters. These must be numeric digits. Each time you compile your code, the release number is increased.
You can use Version(2) to print this information. $version 1,2,3 will be printed as 1.2.3
The compiler will create three internal constants named _VERSION_MAJOR, _VERSION_MINOR and _VERSION_BUILD with the specified values.
For example when $version is set to : $VERSION 1,2,3
_VERSION_MAJOR will become 1 , _VERSION_MINOR will become 2 and _VERSION_BUILD will become 3.
See also
Example
$version 1,2,3
Print Version(2)
Languages | English • Deutsch |
---|