PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
[Bottom][Contents][Search][Prev]: <?Unique>[Next]: <?xXX>
\ -> Standard Definitions -> <?Version>

<?Version>

This variable will be replaced by the version number of the program. The version number is in the form "YY.DDD", examples are "98.001" (first day of 1998) and "00.123" (123rd day of 2000).

This is a Standard Definition which always exists (you don't need to #define it). Note that you can create your own variations or completely new ones (see the examples).

Example

The following code shows how you could ensure that a general purpose header file can only be used if the preprocessor's version number is greater than a particular value. You would do this if the header file requires a particular feature which only became available in a specific release.

/*--- Get PPWIZARD version # as YYYY.DDD ------------------------------------*/
#if    <?Version> < 98.000
        #evaluate PPWizardVersion  "2000.00 + <?Version>";
#elseif
        #evaluate PPWizardVersion  "1900.00 + <?Version>";
#endif

/*--- Validate PPWIZARD VERSION (Y2K safe) ----------------------------------*/
#define DEFINEIT_MIN_PPWIZARD_VERSION    1998.188       ;;Rely on changes made in specific PPWIZARD release
#if    <$PPWizardVersion> < <$DEFINEIT_MIN_PPWIZARD_VERSION>
        #error 'PPWIZARD version of at least <$DEFINEIT_MIN_PPWIZARD_VERSION> is required, you have <$PPWizardVersion>'
#endif


email me  any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Search][Prev]: <?Unique>[Next]: <?xXX>


PPWIZARD Manual
My whole website and this manual itself was developed using PPWIZARD (free preprocessor written by Dennis Bareis)
Sunday November 05 2017 at 10:00am