X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=include%2Fust%2Fbug.h;h=96007c3fb777a5c072f4b6db08151f99dd196026;hb=4e2ee1f5ad0b837440f3b850e971f25db209cca1;hp=8243cc94a7b7447531cc7d7596400a0f63038f3b;hpb=44d13f199a033b2a220d01003b885a0103adf5a4;p=lttng-ust.git diff --git a/include/ust/bug.h b/include/ust/bug.h index 8243cc94..96007c3f 100644 --- a/include/ust/bug.h +++ b/include/ust/bug.h @@ -9,6 +9,9 @@ * Dual LGPL v2.1/GPL v2 license. */ +#define BUILD_BUG_ON(condition) \ + ((void) sizeof(char[-!!(condition)])) + /** * BUILD_RUNTIME_BUG_ON - check condition at build (if constant) or runtime * @condition: the condition which should be false.