Servertec pp:define( ) Method
Content
Introduction
Release Notes
Features
FAQs
Requirements
Installation
Change Log
Future Plans
Knowledge Base
Reference Manual
Conventions
iPP
Templates
Constants
Identifiers
Operators
Directives
Macros
Java API
_init( )
_preprocess( )
_reset( )
_wrapup( )
directiveDelimiter
define( )
displayLogo
embeddedQuotes
generateLineDirectives
getDefinition( )
getFileName( )
getIdentifiers( )
getLine( )
getLineNumber( )
getVersion( )
isDefined( )
isMacro( )
lineDelimiter
main( )
pp( )
preprocess( )
removeBlankLines
removeComments
searchPath
undefine( )
verboseMessages
warningMessages

Legal
Contact Us

 

Used to define a new identifier or macro or overwrite the value of an existing one.

Syntax

    pp.define( Sting )

Parameters

    String contains the definition in the form:
    identifier { text }
    macro( { identifier { , identifier }... } ) { text }

Returns

    Nothing.

Exceptions

    Any exception thrown.

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

    Nothing.

Exceptions

    Any exception thrown.

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")
    
 top of page
Copyright © 1998-2005 Servertec. All rights reserved.
Privacy Statement.
Last Modified: Sun Sep 04 14:56:03 EDT 2005