After 4 months, I would've expected someone to reply to this by now.
But the answer is no, there's no direct equivalent. A test of the !version.release
system variable will get you part way to the functionality you desire, but this is an
execution time rather than a compile time test.
An option is to have a larger build/compilation script that would update the contents of an
include file depending on the version that would be included during the compilation
of your application.
For example, your source may have
Pro MyApp
@version_specific
End
You may have two source include files residing in the
same directory, each with its version-specific code to
be executed.
version_specific_v56.pro:
Print, 'version 56'
version_specific_v60.pro:
Print, 'version 60'
And a build script that would look something like
Pro build
case !version.release of
'5.6' : specific = 'version_specific_v56.pro'
'6.1' : specific = 'version_specific_v60.pro'
endcase
file_copy, specific, 'version_specific.pro', /overwrite
resolve_routine, 'myapp'
...
end
Before executing MyApp, you would execute build.pro to ensure the
appropriate functionality is present.
|