#PDEFINE (add #pragma to project)

Top  Previous  Next

 

#PDEFINE ( symbol, value )

#PDEFINE

Adds a #pragma statement to the project system.

symbol

A symbol that contains a pragma identifier.

value

The value that is associated with the symbol to determine whether to omit or compile code that is enclosed using the OMIT or COMPILE directives.

The #PDEFINE statement adds a #pragma (compiler option) statement to the project system. A pragma is added to the project file in the form of symbol => value.

Example:

#IF (%DemoVersion)

#PDEFINE('_DEMO_',1)

#ELSE

#PDEFINE('_DEMO_',0)

#ENDIF