10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

PreprocessorThe #undef StatementThe #undef statement is used to undefine macro variables. It has the followingsyntax:# undef $variable$variableSpecifies the name of the macro variable you want to undefine. You canspecify only one variable in each #undef statement.You cannot undefine a built-in macro variable. If you use #undef for a macrovariable that does not currently exist, the statement is ignored and processingcontinues.The #if - #endif StatementThe #if statement can be used to conditionally include or exclude lines ofsource code at compile time and to test if a condition is TRUE. It has thefollowing syntax:# if (bool_expr) [then]...# else...# endifbool_exprSpecifies an integer or character expression that evaluates to TRUE (1) orFALSE(0).If the expression is TRUE, then any code between the #if and #else isprocessed and any code between the #else and #endif is ignored. If thetested condition is FALSE, then any lines between the test and an #else, orthe test and the #endif (if the #else is omitted) are ignored. Thepreprocessor removes all of the following statements from the file that arepassed to the compiler:#if 0/* shared procedures */#include nameproc#endif438 <strong>Programming</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!