[SMS D-Bus 02/23] util.h: Add BUILD_BUG_ON() and friends for compile-time assert checking

Marcel Holtmann marcel at holtmann.org
Fri Jun 25 16:46:44 PDT 2010


Hi Inaky,

> These have been stolen from the Linux kernel source; come pretty handy
> to make build-time consistency checks and thus avoid run-time
> surprises.
> ---
>  src/util.h |   28 ++++++++++++++++++++++++++++
>  1 files changed, 28 insertions(+), 0 deletions(-)

I still think that using include/bug.h is way better. And that way we
could more easily sync this with ConnMan. Since this might come in handy
for ConnMan as well.

Regards

Marcel




More information about the ofono mailing list