PreviousNextIndex

DEFINED preprocessor function

Returns the status of a preprocessor name or include file argument name as an INTEGER value. You can use the DEFINED function only within a preprocessor &IF expression.

Syntax

DEFINED ( name ) 

name
Note

This function returns a value of 1 if the argument was a name defined with the &GLOBAL-DEFINE directive; a value of 2 if the argument was passed as an include file parameter; and a value of 3 if the argument was a name defined with the &SCOPED-DEFINE directive. If the argument was not defined and was not an include file parameter, then this function returns a value of 0. The value returned refers to the definition that is current at the point of the call.

See also

{ } Include file reference, &GLOBAL-DEFINE preprocessor directive, &SCOPED-DEFINE preprocessor directive


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex