S
Steve
I have never really used the preprocessor commands so this may seem like a
newbie question.
In my development code, I short circuit certain variables being set by
hardcoding them. So for example I would say something like
PlanID = 1;
However, in the production code, PlanID comes already assigned to me and if
I keep this assignment, I will be using the wrong PlanID.
So if I use
#define DEBUG
:
:
#if DEBUG
PlanID = 1;
#endif
This works great.
HOWEVER......
I would like to have one DEBUG definition to use for the whole project.
What is the best way to do this?
Thanks.
Steve
newbie question.
In my development code, I short circuit certain variables being set by
hardcoding them. So for example I would say something like
PlanID = 1;
However, in the production code, PlanID comes already assigned to me and if
I keep this assignment, I will be using the wrong PlanID.
So if I use
#define DEBUG
:
:
#if DEBUG
PlanID = 1;
#endif
This works great.
HOWEVER......
I would like to have one DEBUG definition to use for the whole project.
What is the best way to do this?
Thanks.
Steve