Re: [PATCH 8/8] Enable GIT_DEBUG_MEMCHECK on git_pathname()
- From
Jeff King <peff@peff.net>
- Date
- Nov 18, 2011, 02:06 UTC
- Message-ID
- <20111118020633.GA9635@sigill.intra.peff.net>
- In-Reply-To
- <CACsJy8CB6VXjyC-M4C9qGm-n73Kuf1Q0SbH4Ync5Osts-uufQQ@mail.gmail.com>
On Fri, Nov 18, 2011 at 08:50:20AM +0700, Nguyen Thai Ngoc Duy wrote:
Show 6 quoted lines
> > Unless you really need macro-like behavior, you're probably better off > > using a variadic function and making it a static inline on platforms > > which can do so. > > I need to save __FILE__ and __LINE__ of call site, inline functions > probably don't help.
Yeah, you'd have to pass them in to the function. Which of course you can't wrap with a macro, because the whole thing is variadic.
-Peff