-
September 13th, 2009, 08:42 PM
#1
Debugger
I have the code:
#ifndef MAXN
#define MAXN 0
#define MAXM 0
#else
#define MAXM 100
#endif
I would like to debugger this, something like:
#ifndef MAXN // print out "MAXN is not defined"
#define MAXN 0
#define MAXM 0
#else // print out "MAXN is defined"
#define MAXM 100
#endif
How?
-
September 13th, 2009, 09:39 PM
#2
Re: Debugger
That isn't code, that's preprocessor statements. Debuggers can't get at them, they're gone before compiling begins.
In fact that doesn't make sense----on either path you're multiply defining the symbol.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|