Forum > FPC development
[SOLVED] {$I %FPCVERSION%} What does it mean
(1/1)
BrunoK:
I'm trying to figure out what {$I %FPCVERSION%} (like in lazarus ide\AboutFrm line 181)
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} --- FPCVersionLabel.Caption:= lisFPCVersion+{$I %FPCVERSION%}; the %FPCVERSION% represents and where it comes from.
Thanks.
Ñuño_Martínez:
It inserts the version number of the FPC compiler as a string to the expression. You'll get more information in the documentation.
Note that it is different than {$I filename}!
BrunoK:
@Ñuño_Martínez thanks for the first link, I couldn't find it.
Let's say solved.
I have branched 3.0.4 for some tests to a private 3.0.6 branch. I managed to get most 3.0.4 version return to reply 3.0.6 except that {$I %FPCVERSION%} that still returns 3.0.4.
Will have to dig/hunt a bit more.
PascalDragon:
Simply search for 'FPCVERSION' (including the quotes) in the compiler sources which will lead you to a case-clause that uses the version_string function which in turn uses the version_nr, release_nr and patch_nr constants in unit version of the compiler.
BrunoK:
@PascalDragon
Thanks.
Indeed it is all there, and is constructed from version_nr+'.'+release_nr+'.'+patch_nr which I had already changed.
It seems that I mixed up my versions. Will figure it out.
Navigation
[0] Message Index