PPWIZARD Manual
[Bottom][Contents][Search][Prev]: <?QuestionMark>[Next]: <?RexxSkip>

<?RestartLine>

By the time PPWIZARD macro replacement has taken place its already decided that the line does not contain a PPWIZARD command. If you wish to dynamically generate PPWIZARD commands you need to use this variable at the start of every command (you could have more than one).

Another possible reason for using this define is that PPWIZARD expands definitions in a single pass from left to right. This means that you could not build up a reference to a variable from components unless you include this define.

PPWIZARD will stop replacement of macros etc as soon as it has expanded the first define of this type on the line so its position on a line can greatly affect the way expansion occurs. The use of this variable could cause other unwanted affects, it is up to you to test to ensure you are obtaining the results you require.

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

In this example the intention is to create the macro variable "X":

    ;--- "Command" contains the command we want executed ---
    #define Command  #define X XXXXXXXXXXXXXXXXXXXXX
    
    Attempt 1 - Fails
    ~~~~~~~~~~~~~~~~~
    <$Command>
    
    Attempt 2 - Works
    ~~~~~~~~~~~~~~~~~
    <?RestartLine><$Command>
    
    Test Definition
    ~~~~~~~~~~~~~~~
    Number of x's ==> <$X>
    


[Top][Contents][Search][Prev]: <?QuestionMark>[Next]: <?RexxSkip>

PPWIZARD Manual
My whole website and this manual itself was developed using PPWIZARD (free preprocessor written by Dennis Bareis)
Tuesday January 02 2001 at 7:37am