Re: Compiler directives
- From: "Peter Morris [Droopy eyes software]" <pete@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 31 Jan 2006 16:09:23 -0000
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/
.
- References:
- Compiler directives
- From: Abdullah Kauchali
- Compiler directives
- Prev by Date: Re: Borland/Delphi Dying blog entry from Ken Henderson at MS
- Next by Date: Re: 64 bit data types
- Previous by thread: Re: Compiler directives
- Next by thread: [DELPHI / Programmers SIG] Meeting Wed Feb 1st Caliber RM
- Index(es):
Relevant Pages
|