Used to define a new identifier or macro or overwrite the value of an existing one.
Syntax
Parameters
pp
|
an instance of the pp class.
|
String
|
contains the definition in the form:
identifier { text }
macro( { identifier { , identifier }... } ) { text }
|
Returns
Notes
Used to define or redefine an identifier or macro.
If the identifier or macro already exists, then the old value is overwritten with the new value.
Requires that stec.pp.pp be imported.
Example
pp.define("__OS__", "WIN32")
pp.define("MAX(a,b) (a>=b)?a:b")
Syntax
pp.define( Sting , type )
Parameters
pp
|
an instance of the pp class.
|
String
|
contains the name of the identifier.
|
type
|
a [ String | int | double | boolean ] value to associate with the specified identifier.
|
Returns
Notes
Used to define or redefine an identifier.
If the identifier already exists, then the old value is overwritten with the new value.
Requires that stec.pp.pp be imported.
Example
pp.define("__OS__", "WIN32")
|