Assert directives

 

Type          Switch

Syntax      {$C+} or {$C-}

{$ASSERTIONS ON} or {$ASSERTIONS OFF}

Default     {$C+}

{$ASSERTIONS ON}

Scope       Local

 

Remarks

The $C directive enables or disables the generation of code for assertions in a source file. {$C+} is the default.

Since assertions are not usually used at runtime in shipping versions of a product, compiler directives that disable the generation of code for assertions are provided. {$C-} will disable assertions.

 

Compiler directives (list)