| View previous topic :: View next topic |
| Author |
Message |
caleb Guest
|
Posted: Sat Feb 11, 2006 7:03 pm Post subject: #include or other code for "Full Debug" |
|
|
Hello:
I'd like to have a bool set to true when the IDE is compiling
in "Full Debug" mode. SOmething like:
bool myBool = false;
// code to detect compiler is in full debug
myBool = true;
Thanks |
|
| Back to top |
|
 |
Liz Albin Guest
|
Posted: Sat Feb 11, 2006 7:03 pm Post subject: Re: #include or other code for "Full Debug" |
|
|
On 11 Feb 2006 10:30:25 -0700, caleb wrote:
| Quote: | I'd like to have a bool set to true when the IDE is compiling
in "Full Debug" mode. SOmething like:
|
check _DEBUIG
eg
#ifdef _DEBUG
// do something
#else
// do something else
#endif
--
liz |
|
| Back to top |
|
 |
Mark Jacobs Guest
|
Posted: Thu Feb 16, 2006 11:03 am Post subject: Re: #include or other code for "Full Debug" |
|
|
Liz Albin wrote:
| Quote: | check _DEBUG
eg
#ifdef _DEBUG
// do something
#else
// do something else
#endif
|
Thanks Liz. I wish I'd known that one a little while ago, rather than waiting for the
107th loop to occur, when the bug reared its ugly head.
--
Mark Jacobs
http://www.dkcomputing.co.uk |
|
| Back to top |
|
 |
|