6.4.1 C-preprocessor Directives

Table of Contents Previous Next


6 Database Utilities : 6.4 ECPGPlus : 6.4.1 C-preprocessor Directives

PROC mode
non-PROC mode
In PROC mode, ECPGPlus allows you to:
Declare host variables outside of an EXEC SQL BEGIN/END DECLARE SECTION.
When you invoke ECPGPlus in PROC mode (by including the -C PROC keywords), the ECPG compiler honors the following C-preprocessor directives:
#if expression
#ifdef symbolName
#ifndef symbolName
#elif expression
#define symbolName expansion
#define symbolName([macro arguments]) expansion
#undef symbolName
#defined(symbolName)
If you do not include the -C PROC command-line option:
When invoked in non-PROC mode, ECPG implements the behavior described in the PostgreSQL Core documentation, available at:

6 Database Utilities : 6.4 ECPGPlus : 6.4.1 C-preprocessor Directives

Table of Contents Previous Next