T
Tagore
hi,
I was working on my first big project in C. Now my project can be
used for 2 different purposes so some portions of my project needed
precondition compiling depending on my purpose. so I use
#ifdef MACRO_NAME
.....code to purpose-1
#elif
.....code for purpose-2
#endif
but the problem is that this precondition compiling involve several
files. so I have to define this macro in all files. Is not there a
better way to define a global Macro.
regards,
I was working on my first big project in C. Now my project can be
used for 2 different purposes so some portions of my project needed
precondition compiling depending on my purpose. so I use
#ifdef MACRO_NAME
.....code to purpose-1
#elif
.....code for purpose-2
#endif
but the problem is that this precondition compiling involve several
files. so I have to define this macro in all files. Is not there a
better way to define a global Macro.
regards,