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