Can #define and #undef flags be used from the Borland compiler command line?
Seron
Can #define and #undef flags be used from the Borland compiler command line?
Seron
At compile time, yes, using "-Dmacroname" where 'macroname' is the name of what you want to define. From the command line:
"myprog myarg myarg myarg"
No.
Quzah.
Hope is the first step on the road to disappointment.
You can define anything you want on the borland bcc32 compiler command line using the -D flag.
Example:
Source:
#ifdef __DEBUG__
// some code
#endif
You can compile it using -D__DEBUG__ to compile the conditionally defined code.
1 rule of the Samurai Code: if you have nothing to say, don't say anything at all!