PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
[Bottom][Contents][Search][Prev]: /DebugTime[Next]: /DeleteOnError
\ -> PPWIZARD Command Line -> Switches -> /Define

Switch /Define:Variable=Contents

This is a PPWIZARD command line switch.

This command sets variables (like #define), but from the command line. This would typically be done to pass information to the script via the command line (possibly version number information or similar) removing the requirement to edit your source code.

You can set as many variables as you wish by using the switch once for each variable.

If the contents needs to include a space you should use "<?Space>" instead.

I recommend that if you use this switch you also ensure that you are also using the *CmdLine" dependancy type so that if you change the value of the switch then a rebuild will occur (look at generated dependancy files if unsure).


Define 2 variables

ppwizard 1.in /output:out\*.out /CrLf /Define:OpSys=OS/2

In your code you could do:

#if '<$OpSys>' = 'OS/2'

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

[Top][Contents][Search][Prev]: /DebugTime[Next]: /DeleteOnError

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