-#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)))
+#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)) \
+ + sizeof(typeof(int[1 - 2*!!__builtin_types_compatible_p(typeof(arr), \
-- Rusty Russell
Rusty, that's a work of art.
However, I would suggest that you never show it to anybody ever
again. I'm sure that in fifty years, it will be worth much more. So
please keep it tightly under wraps, to keep people from gouging
their eyes out^W^W^W^W^W^W^W make a killing in the art market.
-- Linus Torvalds
to post comments)