7 * (C) Copyright 2010-2011 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
9 * Dual LGPL v2.1/GPL v2 license.
12 #define BUILD_BUG_ON(condition) \
13 ((void) sizeof(char[-!!(condition)]))
16 * BUILD_RUNTIME_BUG_ON - check condition at build (if constant) or runtime
17 * @condition: the condition which should be false.
19 * If the condition is a constant and true, the compiler will generate a build
20 * error. If the condition is not constant, a BUG will be triggered at runtime
21 * if the condition is ever true. If the condition is constant and false, no
24 #define BUILD_RUNTIME_BUG_ON(condition) \
26 if (__builtin_constant_p(condition)) \
27 BUILD_BUG_ON(condition); \
This page took 0.029324 seconds and 4 git commands to generate.