Previous: 3.2.3. $AMD: AMD 3DNow! Assembler Instructions Switch To the Table of Contents Next: 3.2.5. $C: Assert Directives Switch
3.2.3. $AMD: AMD 3DNow! Assembler Instructions Switch Table of Contents 3.2.5. $C: Assert Directives Switch

- 3.2.4. -
Table of Contents
3. Compiler Directives
3.2. Switch and Parameter Directives
3.2.4. $B: Boolean Evaluation Switch


3.2.4. $B: Boolean Evaluation Switch


Targets: MS-DOS, OS/2, Win32


Compiler directives

Switches on/off the two different models of code generation for the AND and OR Boolean operators.

Syntax:
  {$B+} or {$B-}
Default:
  {$B-}
Remarks:
If {$B+} defined, the compiler generates code for complete boolean expression evaluation. I.e. every operand of a boolean expression built from the AND and OR operators is guaranteed to be evaluated, even when the result of the entire expression is already known.

If {$B-} defined, the compiler generates code for short-circuit boolean-expression evaluation. I.e. evaluation stops as soon as the result of the entire expression becomes evident.


Previous: 3.2.3. $AMD: AMD 3DNow! Assembler Instructions Switch To the Table of Contents Next: 3.2.5. $C: Assert Directives Switch
3.2.3. $AMD: AMD 3DNow! Assembler Instructions Switch Table of Contents 3.2.5. $C: Assert Directives Switch

- 3.2.4. -