On Thu, Dec 10, 2009 at 11:20 AM, Jacob Mandelson <[email protected]>wrote:
> If something extra in an expression is a common case, I've sometimes > seen it done like: > return DoWork(&foo) POSIX_ONLY(&& DoWork(&posix_specific)); > where POSIX_ONLY will expand to nothing or its argument. > It's ugly, but compact. The Google C++ Style Guide says to avoid macros when there is a non-macro way to do the same thing. PK -- Chromium Developers mailing list: [email protected] View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev
