PPWIZARD Manual
[Bottom][Contents][Search][Prev]: #OneLineEnd[Next]: #option

#OnExit

This command allows you to register some text which after all other processing is itself processed as if it were read from a file.

This command is useful in standard header files where rather than requiring a user to use a macro before exiting it can be done automatically. An example of this might be in a common html header file where you use this command to automatically generate a standard footer at the end of your html.

This command may be used any number of times, the "on exit" processing occurs in the order that the commands were executed.

The processing does not occur if a fatal error was detected.

Syntax

    [WhiteSpace]#OnExit  TheText
    

The text can be anything (macro reference etc). The parameter(s) are not expanded until exit processing occurs.

The following is used in one of my header files:

    ;--- Register checking macro ---
    #OnExit  <$NestingCheck>
    


[Top][Contents][Search][Prev]: #OneLineEnd[Next]: #option

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