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


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>";
        #evaluate PPWizardVersion  "1900.00 + <?Version>";

/*--- 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>'

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

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

My whole website and this manual itself was developed using PPWIZARD (free preprocessor written by Dennis Bareis)
Saturday May 28 2022 at 2:55pm