Used to define a new identifier or macro or overwrite the value of an existing one.
Syntax
Parameters
String
|
contains the definition in the form:
identifier { text }
macro( { identifier { , identifier }... } ) { text }
|
Returns
Exceptions
Notes
pp
|
an instance of the pp class.
|
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("MAX(a,b) (a>=b)?a:b")
Syntax
pp.define( Sting , type )
Parameters
String
|
contains the name of the identifier.
|
type
|
a [ String | int | double | boolean ] value to associate with the specified identifier.
|
Returns
Exceptions
Notes
pp
|
an instance of the pp class.
|
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")
|