Language Reference Guide : Preprocessing Your 4GL Code : Preprocessor
 
Share this page          
Preprocessor
The preprocessor provides the following extensions to 4GL that let you do the following:
Include scripts of 4GL code anywhere in your frame script by using an include script that references the 4GL code
Use macro variables that you define or ones that are defined by the system
Specify conditional behavior for macro variables
Specify whether you want code to be included or excluded at compile time
The preprocessor is invoked every time you compile a frame, procedure, or user class. It processes OpenROAD preprocessor statements that you specify in your scripts. These statements are:
#include
#define
#undef
#if – #endif
#ifdef – #endif
#ifndef – #endif
These statements and how to use them with include scripts and macro variables are described in the following sections.