Re: #iidef and #define to debug program
- From: Artie Gold <artiegold@xxxxxxxxxxxxx>
- Date: Sat, 29 Apr 2006 23:55:15 -0500
FBM wrote:
Hi,
I am preparing project for submission and i'd like to allow the print
out of debug messages. I know that with something like
#define DEBUG
#ifdef DEBUG
print(X);
#endif
you can print out comments in an effective way.. however, can these
#define be sent through the command line, in form of a paramterer?
Erm, no. Preprocessin directives are a *compile* time thing.
You could, of course, pass an argument that indicates whether or not you're debugging -- but that would have to be dealt with within the code the compiler actually sees,
[snip]
HTH,
--ag
--
Artie Gold -- Austin, Texas
http://goldsays.blogspot.com
"You can't KISS* unless you MISS**"
[*-Keep it simple, stupid. **-Make it simple, stupid.]
.
- References:
- #iidef and #define to debug program
- From: FBM
- #iidef and #define to debug program
- Prev by Date: #iidef and #define to debug program
- Next by Date: Re: Boost process and C
- Previous by thread: #iidef and #define to debug program
- Next by thread: how to connect database with c?
- Index(es):
Relevant Pages
|
|