tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: KNF and the C preprocessor
On Mon, Dec 10, 2012 at 06:47:16PM -0500, Mouse wrote:
>
> >> b) __LINE__ (etc) have the value of the use, not the definition.
> > Yes, but if you use static inlines, the debugger's got both -- which
> > it won't, if you use macros...
>
> Huh?
>
> Okay, what's the static inline version of log() here?
>
> #define log(msg) log_(__FILE__,__LINE__,(msg))
> extern void log_(const char *, int, const char *);
I see a #define lurking !
David
--
David Laight: david%l8s.co.uk@localhost
Home |
Main Index |
Thread Index |
Old Index