Re: #if DEBUG vs #ifdef DEBUG |

Ray Johnston <[email protected]> Thu, 09 Dec 2004 06:51:28 -0800
Newsgroups gmane.comp.printing.ghostscript.patches
Message-ID <[email protected]>
Ralph,

Ralph Giles wrote:
> All other code seems to use and #ifdef, but I noticed several
> of the windows-ish makefiles mention or define DEBUG=0, so I'm
> not sure how this is intended to interact.

I think the bare #if in the C code is wrong.

The makefiles use DEBUG=0, but this is fed to the C compiler as
a define with no value using the code in src/msvccmd.mak:

!if $(DEBUG)!=0
CD=/DDEBUG
!else

Regards,
Ray
_________________________________________________________________