meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| programming:c:preprocessor:macros [2025/11/01 14:46] – removed - external edit (Unknown date) 127.0.0.1 | programming:c:preprocessor:macros [2025/11/01 14:50] (current) – niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== macros ====== | ||
| + | |||
| + | * [[https:// | ||
| + | * [[http:// | ||
| + | * [[https:// | ||
| + | |||
| + | <code c> | ||
| + | #define MAX(a, b) \ | ||
| + | ({ __typeof__(a) _a = (a); \ | ||
| + | __typeof__(b) _b = (b); \ | ||
| + | _a > _b ? _a : _b; }) | ||
| + | </ | ||
| + | |||
| + | ===== bitfields ===== | ||
| + | |||
| + | <code c> | ||
| + | #define BITMASK(bit_len, | ||
| + | </ | ||
| + | |||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | |||