tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: KNF and the C preprocessor

>>> So I need to stop the compiler tail merging the two parts of the
>>> inside 'if'
>>> There is nothing I can put inside an inline function version of
>>> cmd() that will stop this happening.
>> If you have an example of [something you can put in a macro but not
>> a function] that'll [prevent that] I'd be interested.
> An assembler comment - from something like:
> asm volatile("; " STR(__LINE__))

How is that any more effective in a macro than in an inline function?
What am I missing here?

/~\ The ASCII                             Mouse
\ / Ribbon Campaign
 X  Against HTML      
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B

Home | Main Index | Thread Index | Old Index