Re: Compiler directives



I have a file "BuildOptions.inc" that I include in my projects

{$IFNDEF RELEASE}
{$IFNDEF DEBUG}
Define DEBUG or RELEASE
{$ENDIF}
{$ENDIF}

{$O+} //Optimisation on
{$U+} //Check for flawed Pentium FDIV
{$B-} //Complete boolean evaluation off
{$R+} //Range checking on
{$O+} //Overflow checking on
{$IFDEF DEBUG}
{$W+} //Stack frames on
{$D+} //Debug info on
{$L+} //Local symbols on
{$C+} //Assertions on
{$ELSE}
{$W-} //Stack frames off
{$D-} //Debug info off
{$L-} //Local symbols off
{$C-} //Assertions off
{$ENDIF}


I then have to define either DEBUG or RELEASE in my app's conditional
defines.



--
Pete
====
Audio compression components, DIB graphics controls, FastStrings
http://www.droopyeyes.com

My blog
http://blogs.slcdug.org/petermorris/


.



Relevant Pages