Debug class optimization
Zack Weinberg
zack@codesourcery.com
Wed Dec 31 01:47:00 GMT 2003
Mad Hatter <slokus@yahoo.com> writes:
> Hi,
>
> I'm trying to write a small debug class that will output debug
> messages if DEBUG is true and suppress them completely if false.
> Though the output is suppressed as expected when DEBUG is false,
> I find that the generated assembler file still seems to have
> the calls even though they do nothing.
Try marking the operator<< definitions 'inline'.
zw
More information about the Gcc
mailing list