Lines Matching full:macros
683 for aligning variables/macros, for reflowing text and other similar tasks.
749 12) Macros, Enums and RTL
752 Names of macros defining constants and labels in enums are capitalized.
760 CAPITALIZED macro names are appreciated but macros resembling functions
763 Generally, inline functions are preferable to macros resembling functions.
765 Macros with multiple statements should be enclosed in a do - while block:
775 Things to avoid when using macros:
777 1) macros that affect control flow:
790 2) macros that depend on having a local variable with a magic name:
799 3) macros with arguments that are used as l-values: FOO(x) = y; will
802 4) forgetting about precedence: macros defining constants using expressions
804 macros using parameters.
811 5) namespace collisions when defining local variables in macros resembling
826 The cpp manual deals with macros exhaustively. The gcc internals manual also
842 There are a number of driver model diagnostic macros in <linux/device.h>
912 appropriate (for example as a means of replacing macros, see Chapter 12), it
1000 18) Don't re-invent the kernel macros
1003 The header file include/linux/kernel.h contains a number of macros that
1018 There are also min() and max() macros that do strict type checking if you