sginsberg@svn.reactos.org wrote:
Author: sginsberg Date: Wed Jun 17 16:44:05 2009 New Revision: 41436
[...] Because gcc is awesome we can then check for debug compilation with both #ifdef DBG and #if DBG (error free! yay gcc!), and so we have mixed usage all over the tree
MSVC behaves exactly the same way ;-P
Timo Kreuzer wrote:
[...] Because gcc is awesome we can then check for debug compilation with both #ifdef DBG and #if DBG (error free! yay gcc!), and so we have mixed usage all over the tree
MSVC behaves exactly the same way ;-P
... but warns on -Wall. In gcc, -Wall is useless
Timo Kreuzer wrote:
sginsberg@svn.reactos.org wrote:
Author: sginsberg Date: Wed Jun 17 16:44:05 2009 New Revision: 41436
[...] Because gcc is awesome we can then check for debug compilation with both #ifdef DBG and #if DBG (error free! yay gcc!), and so we have mixed usage all over the tree
MSVC behaves exactly the same way ;-P
Doesn't the standard specify that a #if against an undefined macro works as if that macro were 0?