X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Documentation%2FCodingStyle;h=f25b3953f51398a023afd8b633aa5168313ccc4a;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=7b256c12a5f54279ee8e6c9408be1c1c37c03bd0;hpb=a2c21200f1c81b08cb55e417b68150bba439b646;p=linux-2.6.git diff --git a/Documentation/CodingStyle b/Documentation/CodingStyle index 7b256c12a..f25b3953f 100644 --- a/Documentation/CodingStyle +++ b/Documentation/CodingStyle @@ -356,10 +356,10 @@ Generally, inline functions are preferable to macros resembling functions. Macros with multiple statements should be enclosed in a do - while block: -#define macrofun(a,b,c) \ +#define macrofun(a, b, c) \ do { \ if (a == 5) \ - do_this(b,c); \ + do_this(b, c); \ } while (0) Things to avoid when using macros: