From: Jeff King Date: Fri, 18 Nov 2011 02:06:33 GMT Subject: Re: [PATCH 8/8] Enable GIT_DEBUG_MEMCHECK on git_pathname() Message-ID: <20111118020633.GA9635@sigill.intra.peff.net> In-Reply-To: On Fri, Nov 18, 2011 at 08:50:20AM +0700, Nguyen Thai Ngoc Duy wrote: > > 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