
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland MAKE v4.0 - using macros in directives
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Using macros in directives
--------------------------
The macro $d is used with the !if conditional directive to perform
some processing if a specific macro is defined. The $d is followed by
a macro name, enclosed in parentheses or braces, as shown in the
following example.
!if $d(DEBUG) #If DEBUG is defined,
bcc -v f1.cpp f2.cpp #compile with debug information;
!else #otherwise (else)
bcc -v- f1.cpp f2.cpp #don't include debug information.
!endif
Don't use the $d macro when MAKE is invoked with the -N option.
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson