RAD Studio (Common)
ContentsIndex
PreviousUpNext
Assert directives (Delphi)
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 Delphi 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.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!