I really like the indented style that some folks have started using:

#if foo
#    define BAR BAZ
#else
#    define BAR BARF
#endif

I think we should standardize on something and add it to the style guides.

-eric

On Thu, Oct 15, 2009 at 10:30 AM, Tor Arne Vestbø
<[email protected]> wrote:
> Hey,
>
> Could not find anything in the style guide regarding indentation of nested
> #ifs/#ifdefs in headers, ie. not #ifdefs in normal code, where adding extra
> indentation would break the indentation of the surrounding code, but nested
> #ifdefs in files like Platform.h
>
> Personally I prefer indentation, for the same reason that we indent code
> (readability), but I just wanted to check if we have a guideline for this.
>
> Tor Arne
>
> _______________________________________________
> webkit-dev mailing list
> [email protected]
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
_______________________________________________
webkit-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to