10.7. 10.7 Conditional Compilation (Compile Time Decisions)

HLA's compile time language provides an if statement, #if, that lets you make various decisions at compile time. The #if statement has two main purposes: the traditional use of #if is to support conditional compilation (or conditional assembly) allowing you to include or exclude code during a compilation depending on the status of various symbols or constant values in your program. The second use of this statement is to support the standard if statement decision-making process in the HLA compile time language. This section will discuss these two uses for the HLA #if statement.

The simplest form of the HLA compile time #if statement uses the following syntax:

#if( constant_boolean_expression ...

Get Art of Assembly Language, 1st Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.